fix infinite loop in paging by clearing Next/Previous fields from previous query
fix decoding of fields that are pointers and are 'null' in json
Merge remote-tracking branch 'origin/fix-decode' into all