MessgeCodec.toJson returns JSON array or object. StringCodec.toJson("v") might return quoted strings "v".
Sometimes we need to store primitive type values as plain strings and complex types as JSON strings. To support use cases, we need a way to return unquoted strings in toJSON or toJSONValue method.
MessgeCodec.toJson returns JSON array or object. StringCodec.toJson("v") might return quoted strings
"v".Sometimes we need to store primitive type values as plain strings and complex types as JSON strings. To support use cases, we need a way to return unquoted strings in toJSON or toJSONValue method.