Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-18831

JSON writer (va createIXmlWriterExt(... WTJSON) unconditionally produces a rootless json result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: Core Libraries
    • Labels:
      None

      Description

      The output of the WTJSON writer is rootless, which strictly isn't valid JSON.
      Creating a XML writer via createIXmlWriterExt with e.g. WTStandard, produces rooted xml output.

      Consequently, special handling of the JSON result is required to parse it, e.g. ptr_noRoot can be passed to createPTreeFromJSONString in order to parse the result.

      The default behaviour should be to produce valid rooted JSON, with an extra flag/type to produce rootless JSON where required.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                afishbeck Anthony Fishbeck
                Reporter:
                jakesmith Jake Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: