trying to get the JSON formatted just like is shown in the example.
Having problems with json formatting objects with arrays of objects