public interface JsonDocumentFactory
JsonDocument
from a JSON string.
To obtain an instance, use RegionService.getJsonDocumentFactory()
or
RegionService.getJsonDocumentFactory(StorageFormat)
.
When Document.getField(String)
is called on the documents created by this factory
an object is returned. The type of that object depends on how this factory maps
JSON elements to a Java type. The mappings are:
StorageFormat.PDX
)RegionService
.Modifier and Type | Method and Description |
---|---|
JsonDocument |
create(String json)
Convert the JSON string to a JsonDocument.
|
JsonDocument create(String json) throws JsonParseException
json
- the JSON String to convert to JsonDocument.JsonParseException
- if the string does not contain a single JSON object.