Uploaded image for project: 'VXQuery (Retired)'
  1. VXQuery (Retired)
  2. VXQUERY-212

Dynamic object construction syntax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The dynamic object construction, merges all the objects returned by the inner expression into a single object with a so-called "simple object union". A simple object union creates a new object, the pairs property of which is obtained by accumulating the pairs of all operand objects. An error jerr:JNDY0003 is raised if two pairs with the same name are encountered.

      Example Query:
      let $object1 :=

      { "Captain" : "Kirk" }

      let $object2 :=

      { "First officer" : "Spock" }

      return

      {| $object1, $object2 |}

      Result:

      { "Captain" : "Kirk", "First officer" : "Spock" }

      [1]

      [1] http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680686311712

      Attachments

        Issue Links

          Activity

            People

              Riyafa Abdul Hameed Riyafa Abdul Hameed
              Riyafa Abdul Hameed Riyafa Abdul Hameed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: