0

I've been given a link to a .json file, what is the best way to go about retrieving the contents and then parsing it?

litterbugkid
  • 3,534
  • 7
  • 36
  • 54
  • refer following link.. [link](http://stackoverflow.com/questions/11824063/best-way-to-json-parsing-using-javascript) ..here explain very well..hope it will help!!! – Sandy8086 Aug 08 '12 at 13:11

2 Answers2

0

In JavaScript you can use this: JSON in JavaScript

and in PHP exists built-in functions for that: JSON in PHP

And when you are using JavaScript you can fetch the data with a simple Ajax request.

tuxtimo
  • 2,730
  • 20
  • 29
0

If you are trying to do this in Titanium mobile then...

  1. Fetch the JSON data using Titanium.Network.HTTPClient
  2. Then transform the response to JSON object using JSON.parse()

Hope that helps

nuffGigs
  • 356
  • 2
  • 5