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

« back to all changes in this revision

Viewing changes to test_json/Queries/converters/jansson/serialize_json_14.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
 
(: valid json generation: comments should be ignored :)
2
 
 
3
 
import module namespace json = "http://www.zorba-xquery.com/modules/converters/json";
4
 
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/json-options";
5
 
 
6
 
declare variable $local:json :=
7
 
   <json type="object">
8
 
    <pair name="servlet" type="object">
9
 
  <!--comment-->
10
 
        <pair name="name" type="string">value</pair>
11
 
    </pair>
12
 
  </json>;
13
 
 
14
 
json:serialize($local:json,<options xmlns="http://www.zorba-xquery.com/modules/converters/json-options" >
15
 
              <json-param name="mapping" value="simple-json" />
16
 
            </options>)