2

Steps to reproduce:

Render a JSON string containing any XML field. E.g., the following JSON:

"<metadata-entry name=\"publisher-name\" scope=\"document\">Some Publisher</metadata-entry>"

Instead, only the contents is shown.

"Some Publisher"

Expected behavior:

See the literal value as is, without any tampering/parsing of tags within the JSON strings themselves.

Orion, OS version; hardware type:

Version 0.99.124.4.1-beta (WebKit 616.1.14.11.1)
MacBook Pro (macOS Ventura 13.4 build 22F66)

  • Vlad replied to this.
    hovsater changed the title to XML content not visible in JSON formatting .

      Sure, @Vlad. Visit https://mocki.io/v1/56e62b54-825e-425b-b510-9d68c96c031b. The JSON response should be:

      {"content":"<metadata-entry name=\"publisher-name\" scope=\"document\">Some Publisher</metadata-entry>"}

      But instead it is:

      {
          "content": "Some Publisher"
      }

      when JSON formatting in Orion is enabled. If you view the source, you can clearly see the actual JSON. The JSON formatting just hides/interprets the tags within the JSON string.

      a month later
      2 months later

      nevermind, wrong place

        No one is typing