This may be a noob question, but if I wanted to make a JSON list of items (in a nodejs app) I can do the following:
var myVar = {
'title' : 'My Title',
'author' : 'A Great Author'
};
console.log(JSON.stringify(myVar));
OUTPUT: { 'title' : 'My Title', 'author' : 'A Great Author' }
and everything works great, but how do I make a sublist like the following?
OUTPUT: { book {'title' : 'My Title', 'author' : 'A Great Author'} }
{}is the object literal syntax,propertyName: propertyValuedefines a property. Go ahead and nest them.