• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2"unicode, escape and empty test": { "a\tb": "\u00eb", "empty": [{},[],{}] },
3"some more unicode tests": {
4  "typical utf-8 input (plane 0)": "ßâñć⇒",
5  "atypical utf-8 input (plane 1)": "��"
6},
7
8"whitespace test": { "trying"   :
9"to"
10  ,
11
12  "break"
13  :
14  "the"  ,
15  "parser": "a bit" }  ,
16
17"#": "All these examples are from http://json.org/example",
18"test1":
19{
20    "glossary": {
21        "title": "example glossary",
22        "GlossDiv": {
23            "title": "S",
24            "GlossList": {
25                "GlossEntry": {
26                    "ID": "SGML",
27                    "SortAs": "SGML",
28                    "GlossTerm": "Standard Generalized Markup Language",
29                    "Acronym": "SGML",
30                    "Abbrev": "ISO 8879:1986",
31                    "GlossDef": {
32                        "para": "A meta-markup language, used to create markup languages such as DocBook.",
33                        "GlossSeeAlso": ["GML", "XML"]
34                    },
35                    "GlossSee": "markup"
36                }
37            }
38        }
39    }
40},
41
42"test2":
43{"menu": {
44  "id": "file",
45  "value": "File",
46  "popup": {
47    "menuitem": [
48      {"value": "New", "onclick": "CreateNewDoc()"},
49      {"value": "Open", "onclick": "OpenDoc()"},
50      {"value": "Close", "onclick": "CloseDoc()"}
51    ]
52  }
53}},
54
55"test3":
56{"widget": {
57    "debug": "on",
58    "window": {
59        "title": "Sample Konfabulator Widget",
60        "name": "main_window",
61        "width": 500,
62        "height": 500
63    },
64    "image": {
65        "src": "Images/Sun.png",
66        "name": "sun1",
67        "hOffset": 250,
68        "vOffset": 250,
69        "alignment": "center"
70    },
71    "text": {
72        "data": "Click Here",
73        "size": 36,
74        "style": "bold",
75        "name": "text1",
76        "hOffset": 250,
77        "vOffset": 100,
78        "alignment": "center",
79        "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
80    }
81}},
82
83"test4":
84{"web-app": {
85  "servlet": [
86    {
87      "servlet-name": "cofaxCDS",
88      "servlet-class": "org.cofax.cds.CDSServlet",
89      "init-param": {
90        "configGlossary:installationAt": "Philadelphia, PA",
91        "configGlossary:adminEmail": "ksm@pobox.com",
92        "configGlossary:poweredBy": "Cofax",
93        "configGlossary:poweredByIcon": "/images/cofax.gif",
94        "configGlossary:staticPath": "/content/static",
95        "templateProcessorClass": "org.cofax.WysiwygTemplate",
96        "templateLoaderClass": "org.cofax.FilesTemplateLoader",
97        "templatePath": "templates",
98        "templateOverridePath": "",
99        "defaultListTemplate": "listTemplate.htm",
100        "defaultFileTemplate": "articleTemplate.htm",
101        "useJSP": false,
102        "jspListTemplate": "listTemplate.jsp",
103        "jspFileTemplate": "articleTemplate.jsp",
104        "cachePackageTagsTrack": 200,
105        "cachePackageTagsStore": 200,
106        "cachePackageTagsRefresh": 60,
107        "cacheTemplatesTrack": 100,
108        "cacheTemplatesStore": 50,
109        "cacheTemplatesRefresh": 15,
110        "cachePagesTrack": 200,
111        "cachePagesStore": 100,
112        "cachePagesRefresh": 10,
113        "cachePagesDirtyRead": 10,
114        "searchEngineListTemplate": "forSearchEnginesList.htm",
115        "searchEngineFileTemplate": "forSearchEngines.htm",
116        "searchEngineRobotsDb": "WEB-INF/robots.db",
117        "useDataStore": true,
118        "dataStoreClass": "org.cofax.SqlDataStore",
119        "redirectionClass": "org.cofax.SqlRedirection",
120        "dataStoreName": "cofax",
121        "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver",
122        "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName=goon",
123        "dataStoreUser": "sa",
124        "dataStorePassword": "dataStoreTestQuery",
125        "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';",
126        "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log",
127        "dataStoreInitConns": 10,
128        "dataStoreMaxConns": 100,
129        "dataStoreConnUsageLimit": 100,
130        "dataStoreLogLevel": "debug",
131        "maxUrlLength": 500}},
132    {
133      "servlet-name": "cofaxEmail",
134      "servlet-class": "org.cofax.cds.EmailServlet",
135      "init-param": {
136      "mailHost": "mail1",
137      "mailHostOverride": "mail2"}},
138    {
139      "servlet-name": "cofaxAdmin",
140      "servlet-class": "org.cofax.cds.AdminServlet"},
141
142    {
143      "servlet-name": "fileServlet",
144      "servlet-class": "org.cofax.cds.FileServlet"},
145    {
146      "servlet-name": "cofaxTools",
147      "servlet-class": "org.cofax.cms.CofaxToolsServlet",
148      "init-param": {
149        "templatePath": "toolstemplates/",
150        "log": 1,
151        "logLocation": "/usr/local/tomcat/logs/CofaxTools.log",
152        "logMaxSize": "",
153        "dataLog": 1,
154        "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log",
155        "dataLogMaxSize": "",
156        "removePageCache": "/content/admin/remove?cache=pages&id=",
157        "removeTemplateCache": "/content/admin/remove?cache=templates&id=",
158        "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFolder",
159        "lookInContext": 1,
160        "adminGroupID": 4,
161        "betaServer": true}}],
162  "servlet-mapping": {
163    "cofaxCDS": "/",
164    "cofaxEmail": "/cofaxutil/aemail/*",
165    "cofaxAdmin": "/admin/*",
166    "fileServlet": "/static/*",
167    "cofaxTools": "/tools/*"},
168
169  "taglib": {
170    "taglib-uri": "cofax.tld",
171    "taglib-location": "/WEB-INF/tlds/cofax.tld"}}},
172
173"test5":
174{"menu": {
175    "header": "SVG Viewer",
176    "items": [
177        {"id": "Open"},
178        {"id": "OpenNew", "label": "Open New"},
179        null,
180        {"id": "ZoomIn", "label": "Zoom In"},
181        {"id": "ZoomOut", "label": "Zoom Out"},
182        {"id": "OriginalView", "label": "Original View"},
183        null,
184        {"id": "Quality"},
185        {"id": "Pause"},
186        {"id": "Mute"},
187        null,
188        {"id": "Find", "label": "Find..."},
189        {"id": "FindAgain", "label": "Find Again"},
190        {"id": "Copy"},
191        {"id": "CopyAgain", "label": "Copy Again"},
192        {"id": "CopySVG", "label": "Copy SVG"},
193        {"id": "ViewSVG", "label": "View SVG"},
194        {"id": "ViewSource", "label": "View Source"},
195        {"id": "SaveAs", "label": "Save As"},
196        null,
197        {"id": "Help"},
198        {"id": "About", "label": "About Adobe CVG Viewer..."}
199    ]
200}}
201
202
203}
204