I ran a JSON dump on one of my models and got the following:

--
$ python manage.py dumpdata databases
[{"pk": "3", "model": "databases.subject", "fields": {"slug": "boom",  
"title": "Boom"}}, {"pk": "2", "model": "databases.subject",  
"fields": {"slug": "more-testing", "title": "More Testing"}}, {"pk":  
"1", "model": "databases.subject", "fields": {"slug": "test",  
"title": "Test"}}]
--

When I try to load this dump (as "subjects.json") in to a freshly  
created database, I get the following error:

--
$ python manage.py loaddata subjects.json
Loading 'subjects' fixtures...
Installing json fixture 'subjects' from '/Users/ttate/Desktop/ 
datagenie2/../datagenie2/apps/databases/fixtures'.
Problem installing fixture '/Users/ttate/Desktop/datagenie2/../ 
datagenie2/apps/databases/fixtures/subjects.json': Expecting property  
name: line 2 column 1 (char 3)
--

The mailing list archives and bug database don't have any clues. I've  
created #4026 to track this.

Any ideas here on the list? I know fixtures are a bit new, so  
hopefully this is just a minor issue.

Thanks in advance, of course!

-Tyson

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to