active_model_serializers/benchmarks/serialization_libraries/support/json_document-ams.json
2017-10-13 22:28:08 -05:00

1341 lines
25 KiB
JSON

{
"data": {
"id": "1",
"type": "users",
"attributes": {
"first_name": "Diana",
"last_name": "Prince",
"birthday": "2017-07-01 05:00:00 UTC",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"posts": {
"data": [
{
"id": "2",
"type": "posts"
},
{
"id": "5",
"type": "posts"
},
{
"id": "8",
"type": "posts"
},
{
"id": "11",
"type": "posts"
},
{
"id": "14",
"type": "posts"
},
{
"id": "17",
"type": "posts"
},
{
"id": "20",
"type": "posts"
},
{
"id": "23",
"type": "posts"
},
{
"id": "26",
"type": "posts"
},
{
"id": "29",
"type": "posts"
},
{
"id": "32",
"type": "posts"
},
{
"id": "35",
"type": "posts"
},
{
"id": "38",
"type": "posts"
},
{
"id": "41",
"type": "posts"
},
{
"id": "44",
"type": "posts"
},
{
"id": "47",
"type": "posts"
},
{
"id": "50",
"type": "posts"
},
{
"id": "53",
"type": "posts"
},
{
"id": "56",
"type": "posts"
},
{
"id": "59",
"type": "posts"
}
]
}
}
},
"included": [
{
"id": "2",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "3",
"type": "comments"
},
{
"id": "4",
"type": "comments"
}
]
}
}
},
{
"id": "3",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "2",
"type": "posts"
}
}
}
},
{
"id": "4",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "2",
"type": "posts"
}
}
}
},
{
"id": "5",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "6",
"type": "comments"
},
{
"id": "7",
"type": "comments"
}
]
}
}
},
{
"id": "6",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "5",
"type": "posts"
}
}
}
},
{
"id": "7",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "5",
"type": "posts"
}
}
}
},
{
"id": "8",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "9",
"type": "comments"
},
{
"id": "10",
"type": "comments"
}
]
}
}
},
{
"id": "9",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "8",
"type": "posts"
}
}
}
},
{
"id": "10",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "8",
"type": "posts"
}
}
}
},
{
"id": "11",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "12",
"type": "comments"
},
{
"id": "13",
"type": "comments"
}
]
}
}
},
{
"id": "12",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "11",
"type": "posts"
}
}
}
},
{
"id": "13",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "11",
"type": "posts"
}
}
}
},
{
"id": "14",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "15",
"type": "comments"
},
{
"id": "16",
"type": "comments"
}
]
}
}
},
{
"id": "15",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "14",
"type": "posts"
}
}
}
},
{
"id": "16",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "14",
"type": "posts"
}
}
}
},
{
"id": "17",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "18",
"type": "comments"
},
{
"id": "19",
"type": "comments"
}
]
}
}
},
{
"id": "18",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "17",
"type": "posts"
}
}
}
},
{
"id": "19",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "17",
"type": "posts"
}
}
}
},
{
"id": "20",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "21",
"type": "comments"
},
{
"id": "22",
"type": "comments"
}
]
}
}
},
{
"id": "21",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "20",
"type": "posts"
}
}
}
},
{
"id": "22",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "20",
"type": "posts"
}
}
}
},
{
"id": "23",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "24",
"type": "comments"
},
{
"id": "25",
"type": "comments"
}
]
}
}
},
{
"id": "24",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "23",
"type": "posts"
}
}
}
},
{
"id": "25",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "23",
"type": "posts"
}
}
}
},
{
"id": "26",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "27",
"type": "comments"
},
{
"id": "28",
"type": "comments"
}
]
}
}
},
{
"id": "27",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "26",
"type": "posts"
}
}
}
},
{
"id": "28",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "26",
"type": "posts"
}
}
}
},
{
"id": "29",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "30",
"type": "comments"
},
{
"id": "31",
"type": "comments"
}
]
}
}
},
{
"id": "30",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "29",
"type": "posts"
}
}
}
},
{
"id": "31",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "29",
"type": "posts"
}
}
}
},
{
"id": "32",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "33",
"type": "comments"
},
{
"id": "34",
"type": "comments"
}
]
}
}
},
{
"id": "33",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "32",
"type": "posts"
}
}
}
},
{
"id": "34",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "32",
"type": "posts"
}
}
}
},
{
"id": "35",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "36",
"type": "comments"
},
{
"id": "37",
"type": "comments"
}
]
}
}
},
{
"id": "36",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "35",
"type": "posts"
}
}
}
},
{
"id": "37",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "35",
"type": "posts"
}
}
}
},
{
"id": "38",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "39",
"type": "comments"
},
{
"id": "40",
"type": "comments"
}
]
}
}
},
{
"id": "39",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "38",
"type": "posts"
}
}
}
},
{
"id": "40",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "38",
"type": "posts"
}
}
}
},
{
"id": "41",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "42",
"type": "comments"
},
{
"id": "43",
"type": "comments"
}
]
}
}
},
{
"id": "42",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "41",
"type": "posts"
}
}
}
},
{
"id": "43",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "41",
"type": "posts"
}
}
}
},
{
"id": "44",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "45",
"type": "comments"
},
{
"id": "46",
"type": "comments"
}
]
}
}
},
{
"id": "45",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "44",
"type": "posts"
}
}
}
},
{
"id": "46",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "44",
"type": "posts"
}
}
}
},
{
"id": "47",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "48",
"type": "comments"
},
{
"id": "49",
"type": "comments"
}
]
}
}
},
{
"id": "48",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "47",
"type": "posts"
}
}
}
},
{
"id": "49",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "47",
"type": "posts"
}
}
}
},
{
"id": "50",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "51",
"type": "comments"
},
{
"id": "52",
"type": "comments"
}
]
}
}
},
{
"id": "51",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "50",
"type": "posts"
}
}
}
},
{
"id": "52",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "50",
"type": "posts"
}
}
}
},
{
"id": "53",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "54",
"type": "comments"
},
{
"id": "55",
"type": "comments"
}
]
}
}
},
{
"id": "54",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "53",
"type": "posts"
}
}
}
},
{
"id": "55",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "53",
"type": "posts"
}
}
}
},
{
"id": "56",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "57",
"type": "comments"
},
{
"id": "58",
"type": "comments"
}
]
}
}
},
{
"id": "57",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "56",
"type": "posts"
}
}
}
},
{
"id": "58",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "56",
"type": "posts"
}
}
}
},
{
"id": "59",
"type": "posts",
"attributes": {
"title": "Some Post",
"body": "awesome content",
"created_at": "2017-07-01 05:00:00 UTC",
"updated_at": "2017-07-01 05:00:00 UTC"
},
"relationships": {
"user": {
"data": {
"id": "1",
"type": "users"
}
},
"comments": {
"data": [
{
"id": "60",
"type": "comments"
},
{
"id": "61",
"type": "comments"
}
]
}
}
},
{
"id": "60",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "59",
"type": "posts"
}
}
}
},
{
"id": "61",
"type": "comments",
"attributes": {
"author": "me",
"comment": "nice blog"
},
"relationships": {
"post": {
"data": {
"id": "59",
"type": "posts"
}
}
}
}
]
}