~zorba-coders/zorba/bug-1188035-csv

« back to all changes in this revision

Viewing changes to test_json/Queries/converters/jansson/parse_json_11.xq

  • Committer: Tarmac
  • Author(s): Paul J. Lucas
  • Date: 2012-01-24 01:56:27 UTC
  • mfrom: (79.1.1 data-converters-module)
  • Revision ID: tarmac-20120124015627-v8to61s7w8of53m6
Removed old JSON module. Approved: Matthias Brantner, Paul J. Lucas

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
(: the comparison method for this test is set to Ignore because the order in which the children
2
 
are returned in jansson 1.2, 1.3, 2.0 is different:)
3
 
 
4
 
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
5
 
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/json-options";
6
 
 
7
 
json:parse(('{
8
 
     "firstName": "John",
9
 
     "lastName": "Smith",
10
 
     "address": {
11
 
         "streetAddress": "21 2nd Street",
12
 
         "city": "New York",
13
 
         "state": "NY",
14
 
         "postalCode": 10021
15
 
     },
16
 
     "phoneNumbers": [
17
 
         "212 732-1234",
18
 
         "646 123-4567"
19
 
     ]
20
 
 }'))