﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4026	"Tyring to load a JSON dump fails with ""Expecting property name"""	tyson@…	Jacob	"I started with a fresh database with the following model:

/myproject/apps/databases/models.py
{{{
class Subject(models.Model):
	""""""An academic subject area (Agriculture, Math, etc.)""""""
	title = models.CharField(maxlength=100)
	slug = models.SlugField(prepopulate_from=(""title"",), unique=True)
}}}

In the admin interface, I added three dummy Subject objects.

In the terminal, I ran the following:

{{{
$ python manage.py dumpdata databases > subjects.json
}}}

I placed it in my app's ""fixtures"" directory and ran the following:

{{{
$ python manage.py loaddata subjects.json
}}}

Which gave me:

{{{
Loading 'subjects' fixtures...
Installing json fixture 'subjects' from '/Users/ttate/Desktop/myproject/../myproject/apps/databases/fixtures'.
Problem installing fixture '/Users/ttate/Desktop/myproject/../myproject/apps/databases/fixtures/subjects.json': Expecting property name: line 2 column 1 (char 3)
}}}

Here's the exported JSON that I got from the dump:

{{{
[{""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""}}]
}}}"		closed	Core (Serialization)	dev		worksforme	json loaddata dumpdata fixtures		Unreviewed	0	0	0	0	0	0
