Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1148

Allow ADM/JSON results from HTTP to be array-wrapped or not

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When making JSON the default for HTTP API calls, I enforced an outer [ ] around the results to ensure it was valid JSON. This is also the case now even if producing ADM results.

      This is sometimes not desirable. In particular, because our ADM (and JSON?) data loaders do not accept data in this format, AsterixDB is not easily round-trippable.

      Suggestion: add an HTTP parameter to select whether the output should be wrapped. This would default to "true" for JSON but "false" for ADM.

      Attachments

        Issue Links

          Activity

            People

              ceej Chris Hillery
              ceej Chris Hillery
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified