Ensure objects are arrays when reading json
Add error checking to json field processing