Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
com.gemstone.gemfire.pdx.internal.PdxInstanceImpl#getObject
Date format, in the JSON land it is pretty much settled to be ISO 8661
https://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates
It would be nice to be able to have Geode’s JSON standard compliant, or have this configurable. Otherwise the we will be loosing time portion of date-s
public Object getObject() {
if (getPdxType().getNoDomainClass()) {
//In case of Developer Rest APIs, All PdxInstances converted from Json will have a className =__GEMFIRE_JSON.
//Following code added to convert Json/PdxInstance into the Java object.
if(this.getClassName().equals("__GEMFIRE_JSON")){
//introspect the JSON, does the @type meta-data exist.
String className = extractTypeMetaData();
if(StringUtils.hasText(className)) {
try
catch(Exception e)
{ throw new PdxSerializationException("Could not deserialize as java class type could not resolved", e); } }
}
return this;
}
Also this method is not that performant, please see #225