Valid JSON doesn't support single quoted strings.
This commit is contained in:
parent
64db6c14bc
commit
32ceb118af
|
@ -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"]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user