Changed so that Jackson doesn't fail on null for primitives

Changed so that Jackson doesn't fail on empty object fields
Changed so that Jackson pretty prints output.