How R and JS communicate?

JSON stands for JavaScript Object Notation.

  • It has the same structure as a JS object.

  • It can be serialized as a character string.

{
  "name": "David",
  "color": "purple",
  "planet": "Mars",
  "animals": [
    {
      "name": "Euclide",
      "type": "cat",
      "age": 7
    }
  ]
}