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


instance K

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


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