@@ -293,7 +293,7 @@ export default DS.Model.extend({
293
293
However, the ` JSONAPISerializer ` expects attributes to be dasherized
294
294
in the document payload returned by your server:
295
295
296
- ``` javascript
296
+ ``` json
297
297
{
298
298
"data" : {
299
299
"id" : " 44" ,
@@ -370,7 +370,7 @@ export default DS.Model.extend({
370
370
371
371
The JSON should encode the relationship as an array of IDs and types:
372
372
373
- ``` javascript
373
+ ``` json
374
374
{
375
375
"data" : {
376
376
"type" : " posts" ,
@@ -406,7 +406,7 @@ export default DS.Model.extend({
406
406
407
407
The JSON should encode the relationship as an ID to another record:
408
408
409
- ``` javascript
409
+ ``` json
410
410
{
411
411
"data" : {
412
412
"type" : " comment" ,
@@ -469,7 +469,7 @@ export default DS.Model.extend({
469
469
When ` coordinatePoint ` is received from the API, it is
470
470
expected to be an array:
471
471
472
- ``` javascript
472
+ ``` json
473
473
{
474
474
cursor: {
475
475
position: [4,9]
@@ -717,7 +717,7 @@ export default DS.Model.extend({
717
717
The normalized JSON object that Ember Data expects a serializer to
718
718
return looks like this:
719
719
720
- ``` javascript
720
+ ``` json
721
721
{
722
722
data: {
723
723
id: "1",
@@ -728,8 +728,8 @@ return looks like this:
728
728
},
729
729
relationships: {
730
730
comments: {
731
- data: [{ id: " 1" , type: ' comment' },
732
- { id: " 2" , type: ' comment' }],
731
+ data: [{ id: "1", type: " comment" },
732
+ { id: "2", type: " comment" }],
733
733
},
734
734
relatedPosts: {
735
735
links: {
0 commit comments