Serialize data - GradedJestRisk/web-training GitHub Wiki

Choices:

  • XML
  • JSON
  • JSON API: spec
JSON API enable to transfer cyclic structures in a flat manner

Its basic structure is the following

{

    "type": "A",
    "id": "1",
    "attributes": {
      "A": "B"
    },
    "relationships": {
      "C": {
        "data": { "type": "D", "id": "2" }
      }
    },
    "links": {
      "self": "URL"
    }

}

Example here Further: hypermedia API

⚠️ **GitHub.com Fallback** ⚠️