Skip to content

Flicker does not (any more?) supply JSON in the format expected by flickrj-android #18

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Attempt to create a Photo from a JSONObject returned from Flickr using 
com.googlecode.flickrjandroid.photos.PhotoUtils.createPhoto()

What is the expected output? What do you see instead?
I expect the creation of a Photo object.
Instead, I receive an exception "org.json.JSONException: JSONObject["farm"] not 
a string." originating at PhotoUtils:94.


What version of the product are you using? On what operating system?
I am using the snapshot build 2.1.1 on Ubuntu Linux 14.04.

Please provide any additional information below.
This bug is due to "farm" (among other properties of the Photo JSON object) 
being an integer (ie "farm": 7) rather than a string (ie "farm": "7").

I have included a modified PhotoUtils.java which correctly parses the "farm", 
"isPublic", "isFriend" and "isFamily" properties.

Original issue reported on code.google.com by roscoe.m...@gmail.com on 11 Nov 2014 at 6:05

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions