Changed all doubles to Double and boolean to Boolean so that they could be null, and thus ignored by the JSON serializer.
Still haven't got the plot to chart, but the JSON is generating.