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