XMLWordPrintableJSON

Details

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

    Description

      I tried to run the following query:
      let $collection := "vxquery-xtest/src/test/resources/TestSources/ghcnd"
      for $r in collection($collection)/dataCollection/data
      return

      { "date": data($r/date), "datatype": data($r/dataType), "station": data($r/station), "attributes": ",,", "value": data($r/value) }

      The result I got was not serialized correctly since the values of the object were without quotes.

      This is the result I get:

      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      {"date":2004-04-04T00:00:00.000,"datatype":PRCP,"station":GHCND:US000000004,"attributes":",,","value":40}
      

      Attachments

        Issue Links

          Activity

            People

              Riyafa Abdul Hameed Riyafa Abdul Hameed
              pavlopoul Christina Pavlopoulou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: