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

« back to all changes in this revision

Viewing changes to test_json/Queries/converters/jansson/serialize_json_16.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
 
declare variable $local:json :=<json type="object">
5
 
  <pair name="servlet" type="array">
6
 
    <item type="array">
7
 
      <item type='string'>212 732-1234</item>
8
 
    </item>
9
 
  </pair>
10
 
</json>;
11
 
 
12
 
json:serialize($local:json,<options xmlns="http://www.zorba-xquery.com/modules/converters/json-options" >
13
 
              <json-param name="mapping" value="simple-json" />
14
 
            </options>)