Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

org.json.JSONException: JSONObject["summary"] not found.

Hello,

 

I'm using the FitBit4J-1.0.26 jar and I was trying to use List<FriendStats> friendsStatList = apiClientService.getClient().getFriendsLeaderboard... and on the return the error Error parsing json response to list of FriendStats... Caused by: org.json.JSONException: JSONObject["summary"] not found.

 

Apparently the return result isn't matching up to the expected return of List<FriendStats> or vice versa.

 

Interestingly testing with the API Explorer the returned Jason object dose contain "summary" data.

 

Has this been reported before?  Are there plans to correct the issue?  When will a correction be available?

 

Thanks Much,

Mr H.

Best Answer
0 Votes
1 REPLY 1

Hi,

 

The Fitbit4J library is deprecated and we are no longer providing support for it. You are welcome to modify the source code (available on our Github) to address the issue. However we highly recommend that applications migrate to using any popular OAuth client in the language of your choice.

Best Answer
0 Votes