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):
graphJSON = {
"nodes": ['mark', 'higgs', 'other', 'etc'],
"nodes": ["mark", "higgs", "other", "etc"],
"edges": [
['mark', 'higgs'],
['mark', 'etc'],
['mark', 'other']
["mark", "higgs"],
["mark", "etc"],
["mark", "other"]
]
};

View File

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