This article provides a resolution for the issue when you try to convert a PdxInstance into a JSON document, when one of the field's type is "Date", using a JSONFormatter.
When attempting this conversion, you may see the following exception and fail to get a JSON document:
Log Message:
Could not create JSON document from PdxInstance com.gemstone.gemfire.pdx.JSONFormatterException: Could not create JSON document from PdxInstance at com.gemstone.gemfire.pdx.JSONFormatter.toJSON(JSONFormatter.java:103) : Caused by: java.lang.IllegalStateException: PdxInstance returns unknwon pdxfield approvedOn for type Tue May 23 10:20:55 JST 2017 at com.gemstone.gemfire.pdx.internal.json.PdxToJSON.writeValue(PdxToJSON.java:173) :