fix decoding of fields that are pointers and are 'null' in json