added example of programmatically getting list of objects into JSON