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):
|
||||
|
||||
graphJSON = {
|
||||
"nodes": ['mark', 'higgs', 'other', 'etc'],
|
||||
"nodes": ["mark", "higgs", "other", "etc"],
|
||||
"edges": [
|
||||
['mark', 'higgs'],
|
||||
['mark', 'etc'],
|
||||
['mark', 'other']
|
||||
["mark", "higgs"],
|
||||
["mark", "etc"],
|
||||
["mark", "other"]
|
||||
]
|
||||
};
|
||||
|
||||
|
|
|
@ -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"]
|
||||
]
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user