Skip to content

Instantly share code, notes, and snippets.

@tommyettinger
Created August 26, 2016 21:36
Show Gist options
  • Save tommyettinger/7457fe500dad0986c4610fea7f08d52a to your computer and use it in GitHub Desktop.
Save tommyettinger/7457fe500dad0986c4610fea7f08d52a to your computer and use it in GitHub Desktop.
Round-Trip from JSON, to very-hard-to-edit JSON, and back again.
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}
{"䯯뼴ﳧ慶ꡍ": {
"䯯ꡍ齔ﳧ": "뾄慶뼴뾊죯",
"颣皃ﳧ皃": {
"艑뼴쭃ꡍ": "櫓ꡍ暔ﳧꡍ㘇 䯯ꡍ齔ﳧา ᖨ慶뼴疭暔끍ꡍ暔ﳧ",
"艑ꫪ暔า": "艑ﳧ໗慶ꡍ",
"쩂뼴暔띸в幠": -3.961254696547253E-96,
"톹暔뉥вꫪꌻꡍ민꾉": 2.2181765763671625E170
},
"伽皃끍꾉慶ꡍ": {
"톹꾉皃뾊뼴ﳧ໗": "ᖨ慶뼴疭暔끍ꡍ暔ﳧ/덉㣍椰椰ꌻꡍﳧ.㲲皃뼴暔잙幠뼴暔띸в幠",
"熗ꡍ㘇ꡍ": "덉ꡍ뼴疭谺ﳧ",
"憎뼴띸疭ꡍﳧ": -3.961254696547253E-96,
"砞в暔椰皃ꦨꫪ慶皃ﳧв㘇": -3.961254696547253E-96,
"㹦в慶띸": "识㣍椰椰ꌻꡍﳧ"
},
"톹暔": {
"쩂뼴띸疭ꡍﳧ": "颣ꡍꦨꫪ疭 덉㣍椰椰ꌻꡍﳧ",
"艑ꫪ暔า": 2.2181765763671625E170,
"识㣍椰椰ꌻꡍﳧ": "Ἣ끍皃疭ꡍꌻ",
"ﴯ皃끍ꡍ": "ﴯ皃끍ꡍ",
"ﴯ皃끍ꡍ": 1.892774451531898E-91,
"艑ꫪ暔า": 1.4276708089717243E219,
"㞽끍皃疭ꡍ": "艑㘇뾊",
"櫓ꡍ暔ﳧꡍ㘇": "톹꾉皃뾊뼴ﳧ໗.伽ꫪ暔 = (쩂뼴띸ﳧ谺.럈暔疭 / 1.4276708089717243E219) * 7.457828798538873E-13;"
}
}}
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500.0,
"height": 500.0
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250.0,
"vOffset": 250.0,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36.0,
"style": "bold",
"name": "text1",
"hOffset": 250.0,
"vOffset": 100.0,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100.0) * 90.0;"
}
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment