- Home /
Parsing Json from facebook?
I'm having difficilty understanding how to use Json properly. I'm using the prime31 plugin for socialNetworking and can easily get all of my scores from facebook in Json format.
Example:
{"data":[{"score":428500, "application":{"id":"1111111", "namespace":"bejeweledblitz", "name":"Bejeweled Blitz"}, "user":{"id":"2222", "name":"Adam Smith"}}, {"score":7616, "application":{"id":"44444444444", "namespace":"avengersalliance", "name":"Marvel: Avengers Alliance"}, "user":{"id":"6665545434", "name":"Adam Smith"}}]}
I'm fairly new to the whole new json thing, I just heard about it yesterday. I'm using MiniJson to Encode what i get back from the facebook graph API into json.
Now I just need to be able to parse the data out of it.
Comment
Answer by Jeremy Hindle · Feb 14, 2013 at 09:17 PM
I personally use this: http://www.aworldforus.com/xml-json-serialization/
That page also gives you a good idea on ways to parse json yourself if you want to write your own version.