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

« back to all changes in this revision

Viewing changes to test_json/Queries/converters/jansson/serialize_json_ml_02.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 $tmp :=<table class="MyTable" style="background-color:yellow">
5
 
<tr>
6
 
<td class="MyTD" style="border:1px solid black">#5D28D1</td>
7
 
<td class="MyTD" style="background-color:red">Example text here</td>
8
 
</tr>
9
 
<tr>
10
 
<td class="MyTD" style="border:1px solid black">#AF44EF</td>
11
 
<td class="MyTD" style="background-color:green">127310656</td>
12
 
</tr>
13
 
<tr>
14
 
<td class="MyTD" style="border:1px solid black">#AAD034</td>
15
 
<td class="MyTD" style="background-color:blue">\u00A0<span style="background-color:maroon">\u00A9</span>\u00A0</td>
16
 
</tr>
17
 
</table>;
18
 
 
19
 
json:serialize($tmp,<options xmlns="http://www.zorba-xquery.com/modules/converters/json-options" >
20
 
              <json-param name="mapping" value="json-ml" type="array"/>
21
 
            </options>)
 
 
b'\\ No newline at end of file'