sachin-handiekar/jInstagram — Issue #1: Problems parsing json response with "user_has_liked"
Author: mariusw
Created: 2011-10-16 20:54:08+00:00
State: open

Hey Sachin!

Nice work on the jinstagram project!

I am trying out jinstagram and am experiencing a problem when using the getRecentMediaFeed() method.

The json response includes "user_has_liked" info which for some reason has an ID that is a concatenation of the media id, and underscore and the user id:
..."user_has_liked": false, "id": "272980608_4245834", "user": {"username": "mariuswaldal"...

This id triggers an exception as it cannot be parsed to a number:
Caused by: com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: For input string: "272980608_4245834"

Have you experienced this yourself? It might be that the user_has_liked has been added after you last updated jinstagram.

Marius