Fix parsing of null strings. These got parsed as empty strings
Added specs to verify json serialization of objects