-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated transparent-json documentation and examples per comments from…
… Saašha Metsärantala
- Loading branch information
Showing
8 changed files
with
55 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,18 @@ | |||
{ | { | ||
"id": "1234", | "id": "1234", | ||
"": "empty string", | "": "empty string", | ||
"foo$bar": "foo$bar", | "foo$bar": "key contains non-name char", | ||
"1foo$bar": "1foo$bar", | "1foo$bar": "key starts with non-name-start char", | ||
"x:html": "x:html", | "x:html": "key with colon", | ||
"array": [1,2,3,false,null], | "array": [1,2,3,false,null], | ||
"bool": false, | "bool": false, | ||
"isnull": null, | "isnull": null, | ||
"image": { | "image": { | ||
"url": "http://example.com/image.jpg", | "url": "http://example.com/image.jpg", | ||
"width": 500, | "width": 500, | ||
"height": 500 | "height": 500 | ||
} | }, | ||
"<crazy&key>": "sane value", | |||
"\"double quotes\"": "dquoted key", | |||
"'single quotes'": "squoted key" | |||
} | } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
for flavor in "marklogic" "jsonx" "jxml" "calabash" "calabash-deprecated" | |||
do | |||
echo "Converting JSON to $flavor..." | |||
calabash -Xtransparent-json -Xjson-flavor=$flavor -oresult=../results/json-$flavor.xml json.xpl | |||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters