Page 1 of 1

Importing Parse.com DB to Tiggzi backend

Posted: Wed Mar 13, 2013 3:38 pm
by Jon

I started with a Parse.com database but would like to import it and use the Tiggzi backend. When I tried to import the JSON table I had exported from parse.com into my Tiggzi DB Collection, I got the message "Root element "data" not found". I checked other threads on the forum, but didn't seem to see one with the same question.


Importing Parse.com DB to Tiggzi backend

Posted: Wed Mar 13, 2013 3:41 pm
by maxkatz

Can you show us a sample data from your file..? You can put dummy data - if you need to.


Importing Parse.com DB to Tiggzi backend

Posted: Tue Mar 19, 2013 11:30 am
by Jon

sure thing...
precode{ "results": [
{
"response": "thought",
"option": "rational",
"userId": "9XTxoQs6ev",
"createdAt": "2013-03-13T15:07:33.985Z",
"updatedAt": "2013-03-13T15:07:33.985Z",
"objectId": "ok2fkCxY7y"
}
] }/code/pre


Importing Parse.com DB to Tiggzi backend

Posted: Tue Mar 19, 2013 5:49 pm
by Maryna Brodina

Hello! Try next format:

code{ "data": [
{
"response": "thought",
"option": "rational",
"userId": "9XTxoQs6ev",
"createdAt": "2013-03-13T15:07:33.985Z",
"updatedAt": "2013-03-13T15:07:33.985Z",
"objectId": "ok2fkCxY7y"
},
{
"response": "response2",
"option": "option2",
"userId": "222222",
"createdAt": "2012-02-12T15:07:33.985Z",
"updatedAt": "2012-02-12T15:07:33.985Z",
"objectId": "222222"
}
] }/code

Please note that
code"createdAt", "updatedAt", "objectId"/code became just string fields.

system fields (_id, _createdAt, _updatedAt) not allowed for import.