Skip to content

Commit f0061fa

Browse files
authored
fixed formatting of json request
1 parent 75f5bcf commit f0061fa

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

README.md

+14-11
Original file line numberDiff line numberDiff line change
@@ -446,23 +446,26 @@ We have our Movie Class inheriting from the serializer class on the first line,
446446
You should see that only the ```id``` and ```name``` attribute is being returned from the database.
447447

448448
```json
449-
{ movies:
449+
450+
{ "movies":
451+
[
450452
{
451-
id: 1,
452-
name: "The Nightmare Before Christmas",
453-
rating: 5
453+
"id": 1,
454+
"name": "The Nightmare Before Christmas",
455+
"rating": 5
454456
},
455457
{
456-
id: 2,
457-
name: "The Titanic",
458-
rating: 5
458+
"id": 2,
459+
"name": "The Titanic",
460+
"rating": 5
459461
},
460462
{
461-
id: 3,
462-
name: "Venom",
463-
rating: 4
463+
"id": 3,
464+
"name": "Venom",
465+
"rating": 4
464466
}
465-
}
467+
]
468+
}
466469
```
467470

468471
We are done! What is the takeaway?

0 commit comments

Comments
 (0)