Importing JSON

We’ve supported importing data from a CSV for a while. Now we’re happy to announce you can also import from JSON! CSV is still good for getting simple data types from a spreadsheet into Parse, but more complicated data types like Pointers and GeoPoints can be imported using JSON.

This also means you can import the same format that we export, allowing you to copy data from one app to another easily.

The JSON file can either contain a JSON array of objects in the REST format such as:

[
  {
     "playerName" : "Sean Plott",
     "score": 1337
   }
]

or a JSON Object with a results field:

{
  "results" : [
     {
        "playerName" : "Sean Plott",
        "score": 1337
     }
  ]
}

For more information on importing data read the Data Importing Guide. For more information on the REST Object format, read the Objects section of the REST guide.

Shyam Jayaraman
February 25, 2013
blog comments powered by Disqus

Comments are closed.

Archives

Categories

RSS Feed Follow us Like us