Valid JSON doesn't support single quoted strings.

This commit is contained in:
anatoly techtonik 2013-03-12 17:33:42 +03:00
parent 64db6c14bc
commit 32ceb118af
2 changed files with 12 additions and 12 deletions

View File

@ -59,11 +59,11 @@ Springy 1.2+ also accepts JSON, see
[demo-json.html](http://dhotson.github.com/springy/demo-json.html): [demo-json.html](http://dhotson.github.com/springy/demo-json.html):
graphJSON = { graphJSON = {
"nodes": ['mark', 'higgs', 'other', 'etc'], "nodes": ["mark", "higgs", "other", "etc"],
"edges": [ "edges": [
['mark', 'higgs'], ["mark", "higgs"],
['mark', 'etc'], ["mark", "etc"],
['mark', 'other'] ["mark", "other"]
] ]
}; };

View File

@ -8,16 +8,16 @@
<script> <script>
var graphJSON = { var graphJSON = {
"nodes": [ "nodes": [
'Amphitryon', "Amphitryon",
'Alcmene', "Alcmene",
'Iphicles', "Iphicles",
'Heracles' "Heracles"
], ],
"edges": [ "edges": [
['Amphitryon', 'Alcmene'], ["Amphitryon", "Alcmene"],
['Alcmene', 'Amphitryon'], ["Alcmene", "Amphitryon"],
['Amphitryon', 'Iphicles'], ["Amphitryon", "Iphicles"],
['Amphitryon', 'Heracles'] ["Amphitryon", "Heracles"]
] ]
}; };