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


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