fix decoding of fields that are pointers and are 'null' in json
Merge pull request #17 from kjk/fix-decode

fix decoding of pointer fields that are 'null' in json