Contentstack Demonstrates 295% ROI as Part of New Go Composable Initiative295% ROI with ContentstackRead more
cs-icon.svg

HTML RTE vs JSON RTE

The JSON Rich Text Editor stores content in plain text format, which can be understood and processed by all programming languages. Whereas the HTML RTE is limited and constrained to HTML markup.

JSON-formatted content helps developers render content to any front-end framework with immense flexibility and interoperability.

HTML code in source code viewer:

<p>This RTE is amazing.</p>

JSON RTE response code:

{
  "entry":{
    "title":"Entry 1",
    "json_rte":{
      "type":"doc",
      "attrs":{
        
      },
      "uid":"a52aa19f3af54a61a32f1724831dc084",
      "children":[
        {
          "type":"p",
          "attrs":{
            
          },
          "uid":"c0a9f4affcef4409b3d23857d35f863b",
          "children":[
            {
              "text":"This RTE is "
            },
            {
              "text":"amazing",
              "bold":true
            },
            {
              "text":"."
            }
          ]
        }
      ],
      "_version":2
    },
    "tags":[
      "json_rte"
    ],
    "locale":"en-us",
    "uid":"bltc4d873bf4fd6f624",
    "created_by":"blt7b815b05d2fe5dd8",
    "updated_by":"blt7b815b05d2fe5dd8",
    "created_at":"2021-07-15T09:51:40.418Z",
    "updated_at":"2021-07-15T09:52:54.900Z",
    "ACL":{
      
    },
    "_version":2,
    "_in_progress":false
  }
}

With the JSON-based editor, the developers can handle the HTML component, and content managers can undividedly focus on styling and generating high-quality content.

Hence, you will notice one significant difference between HTML and JSON RTE, the absence of the HTML source code viewer.

Difference_between_HTML_and_JSON_RTE.jpg

Was this article helpful?
^