#9518: Wrong JSON snippet on fixture documentation
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody    
   Status:  new                 |   Milestone:            
Component:  Documentation       |     Version:  1.0       
 Keywords:                      |       Stage:  Unreviewed
Has_patch:  0                   |  
--------------------------------+-------------------------------------------
 On http://docs.djangoproject.com/en/dev/howto/initial-data, the JSON
 fixture example is wrong. Unlike Python, JSON doesn't allow commas after
 last element of a list or a dict.

 The right example should be:
 {{{
 [
   {
     "model": "myapp.person",
     "pk": 1,
     "fields": {
       "first_name": "John",
       "last_name": "Lennon"
     }
   },
   {
     "model": "myapp.person",
     "pk": 2,
     "fields": {
       "first_name": "Paul",
       "last_name": "McCartney"
     }
   }
 ]

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9518>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to