example JSON

command createJsonData = exec_js {
	"Java.type(\"catdata.Util\").writeFile(\" {  \\\"glossary\\\": {\\r\\n        \\\"title\\\": \\\"example glossary\\\",\\r\\n\\t\\t\\\"GlossDiv\\\": {\\r\\n            \\\"title\\\": \\\"S\\\",\\r\\n\\t\\t\\t\\\"GlossList\\\": {\\r\\n                \\\"GlossEntry\\\": {\\r\\n                    \\\"ID\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"SortAs\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"GlossTerm\\\": \\\"Standard Generalized Markup Language\\\",\\r\\n\\t\\t\\t\\t\\t\\\"Acronym\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"Abbrev\\\": \\\"ISO 8879:1986\\\",\\r\\n\\t\\t\\t\\t\\t\\\"GlossDef\\\": {\\r\\n                        \\\"para\\\": \\\"A meta-markup language, used to create markup languages such as DocBook.\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"GlossSeeAlso\\\": [\\\"GML\\\", \\\"XML\\\"]\\r\\n                    },\\r\\n\\t\\t\\t\\t\\t\\\"GlossSee\\\": \\\"markup\\\"\\r\\n                }\\r\\n            }\\r\\n        }\\r\\n    } \\r\\n} \", \"temp.json\")" 
}

instance I = import_json_ld_all "temp.json"

instance K = spanify I

command out = export_json_instance I "exported.json"
Keywords:

export_json_instance
exec_js
spanify
import_json_ld_all

Options:




instance I

R
IDobjectpredicatesubject
0?0cql://json#GlossList?1
1Scql://json#title?1
2?2cql://json#GlossEntry?0
3?3cql://json#glossary?4
4XMLcql://json#GlossSeeAlso?5
5GMLcql://json#GlossSeeAlso?5
6A meta-markup language, used to create markup languages such as DocBook.cql://json#para?5
7markupcql://json#GlossSee?2
8?5cql://json#GlossDef?2
9ISO 8879:1986cql://json#Abbrev?2
10SGMLcql://json#Acronym?2
11Standard Generalized Markup Languagecql://json#GlossTerm?2
12SGMLcql://json#SortAs?2
13SGMLcql://json#ID?2
14?1cql://json#GlossDiv?3
15example glossarycql://json#title?3


instance K

cql://json#Abbrev
IDobjectsubject
0ISO 8879:1986?0
cql://json#Acronym
IDobjectsubject
1SGML?0
cql://json#GlossDef
IDobjectsubject
2?1?0
cql://json#GlossDiv
IDobjectsubject
3?2?3
cql://json#GlossEntry
IDobjectsubject
4?0?4
cql://json#GlossList
IDobjectsubject
5?4?2
cql://json#GlossSee
IDobjectsubject
6markup?0
cql://json#GlossSeeAlso
IDobjectsubject
7XML?1
8GML?1
cql://json#GlossTerm
IDobjectsubject
9Standard Generalized Markup Language?0
cql://json#ID
IDobjectsubject
10SGML?0
cql://json#SortAs
IDobjectsubject
11SGML?0
cql://json#glossary
IDobjectsubject
12?3?5
cql://json#para
IDobjectsubject
13A meta-markup language, used to create markup languages such as DocBook.?1
cql://json#title
IDobjectsubject
14S?2
15example glossary?3


command createJsonData

Java.type("catdata.Util").writeFile(" {  \"glossary\": {\r\n        \"title\": \"example glossary\",\r\n\t\t\"GlossDiv\": {\r\n            \"title\": \"S\",\r\n\t\t\t\"GlossList\": {\r\n                \"GlossEntry\": {\r\n                    \"ID\": \"SGML\",\r\n\t\t\t\t\t\"SortAs\": \"SGML\",\r\n\t\t\t\t\t\"GlossTerm\": \"Standard Generalized Markup Language\",\r\n\t\t\t\t\t\"Acronym\": \"SGML\",\r\n\t\t\t\t\t\"Abbrev\": \"ISO 8879:1986\",\r\n\t\t\t\t\t\"GlossDef\": {\r\n                        \"para\": \"A meta-markup language, used to create markup languages such as DocBook.\",\r\n\t\t\t\t\t\t\"GlossSeeAlso\": [\"GML\", \"XML\"]\r\n                    },\r\n\t\t\t\t\t\"GlossSee\": \"markup\"\r\n                }\r\n            }\r\n        }\r\n    } \r\n} ", "temp.json")

command out

Size 53