O'Reilly book "Dojo - The Definitive Guide" page 378 shows the following sample Tree structure which is supposedly JSON. It seems to work in building the Dijit Tree structure.
{
identifier: 'name',
label:'name',
items: [
{
name: "Programming Languages",
children: [
etc...
Should the word identifier, label, items, name, and children be enclosed in quotes?
I'm writing a Python program to generate syntax that is compatible with their desired tree structure. Just to test my output, I tried:
testDict = "xxxx" where xxxx is the string supposed JSON string above. It always gives an error that 'identifier' is not defined.
So I'm curious if this was a typo - or if there are some new keywords or features of JSON that I need to learn.
Thanks, Neal Walters