{id: 1, label: 'Node 1', title: 'I have a popup!'}
Is an invalid
JSON
string. It should be
{"id": 1, "label": "Node 1", "title": "I have a popup!"}
Test it, for instance, here:
JSONLint - The JSON Validator[
^].
You can also use an online validator to check any JSON expression.
e.g.
JSON Formatter & Validator[
^]