return ERXRestUtils.coerceValueToString(obj, _context);
}
}
public static JsonConfig createDefaultConfig(ERXRestContext context) {
JsonConfig config = new JsonConfig();
config.registerJsonValueProcessor(NSTimestamp.class, new GeneralObjectToStringProcessor(context));
config.registerJsonValueProcessor(LocalDate.class, new GeneralObjectToStringProcessor(context));
config.registerJsonValueProcessor(LocalDateTime.class, new GeneralObjectToStringProcessor(context));
config.registerJsonValueProcessor(Date.class, new GeneralObjectToStringProcessor(context));
config.registerJsonValueProcessor(NSData.class, new GeneralObjectToStringProcessor(context));
config.registerJsonValueProcessor(ERXCryptoString.class, new GeneralObjectToStringProcessor(context));
config.setJsonValueProcessorMatcher(new ERXRestValueProcessorMatcher());
return config;
}