summaryrefslogtreecommitdiff
path: root/tests/example3.json
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-05-03 23:04:22 +0930
committerMark Pulford <mark@kyne.com.au>2011-05-03 23:04:22 +0930
commit4146070e69475d5eedcf7a9e3d990e511f46ec7a (patch)
tree5e6bfa66ee9a1fc4ac4125f349c55a3d7c551e35 /tests/example3.json
parentce3a769dbdd13571b5b761d933e17e8fe5771739 (diff)
downloadlua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.tar.gz
lua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.tar.bz2
lua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.zip
Add basic JSON tests and benchmark
Diffstat (limited to 'tests/example3.json')
-rw-r--r--tests/example3.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/example3.json b/tests/example3.json
new file mode 100644
index 0000000..d7237a5
--- /dev/null
+++ b/tests/example3.json
@@ -0,0 +1,26 @@
1{"widget": {
2 "debug": "on",
3 "window": {
4 "title": "Sample Konfabulator Widget",
5 "name": "main_window",
6 "width": 500,
7 "height": 500
8 },
9 "image": {
10 "src": "Images/Sun.png",
11 "name": "sun1",
12 "hOffset": 250,
13 "vOffset": 250,
14 "alignment": "center"
15 },
16 "text": {
17 "data": "Click Here",
18 "size": 36,
19 "style": "bold",
20 "name": "text1",
21 "hOffset": 250,
22 "vOffset": 100,
23 "alignment": "center",
24 "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
25 }
26}}