~zorba-coders/zorba/bug-1189785-csv

« back to all changes in this revision

Viewing changes to test_json/Queries/converters/jansson/parse_json_ml_01.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
 
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
2
 
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/json-options";
3
 
 
4
 
json:parse(('
5
 
["ul",
6
 
  ["li",
7
 
  { "style" : "color:red" },
8
 
  "First Item"
9
 
  ],
10
 
  ["li",
11
 
  {
12
 
  "title" : "Some hover text.",
13
 
  "style" : "color:green"
14
 
  },
15
 
  "Second Item"
16
 
  ],
17
 
  ["li",
18
 
    ["span",
19
 
    { "class" : "code-example-third" },
20
 
    "Third"
21
 
    ],
22
 
  " Item"
23
 
  ]
24
 
]'),<options xmlns="http://www.zorba-xquery.com/modules/converters/json-options" 
25
 
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26
 
              <json-param name="mapping" value="json-ml" type="array"/>
27
 
            </options>)
 
 
b'\\ No newline at end of file'