Class DJsonService
java.lang.Object
io.ebeaninternal.json.DJsonService
- All Implemented Interfaces:
io.ebean.service.BootstrapService, io.ebean.service.SpiJsonService
Utility that converts between JSON content and simple java Maps/Lists.
Backed by avaje JsonMapper using EbeanJsonAdapter which
preserves Ebean's modify-aware collection and number semantics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse(io.avaje.json.JsonReader parser) parseList(io.avaje.json.JsonReader parser) <T> List<T> parseList(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token currentToken) <T> List<T> parseObject(io.avaje.json.JsonReader parser) parseObject(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token token) parseObject(Reader reader) parseObject(Reader reader, boolean modifyAware) parseObject(String json) parseObject(String json, boolean modifyAware) <T> Set<T> parseSet(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token currentToken) <T> Set<T> voidvoidvoidwriteCollection(Collection<Object> collection, io.avaje.json.JsonWriter jsonWriter)
-
Constructor Details
-
DJsonService
public DJsonService()
-
-
Method Details
-
write
- Specified by:
writein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
write
- Specified by:
writein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
write
- Specified by:
writein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
writeCollection
public void writeCollection(Collection<Object> collection, io.avaje.json.JsonWriter jsonWriter) throws IOException - Specified by:
writeCollectionin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
- Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
- Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
- Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
- Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
- Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseObject
public Map<String,Object> parseObject(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token token) throws IOException - Specified by:
parseObjectin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseList
- Specified by:
parseListin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseList
- Specified by:
parseListin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseList
- Specified by:
parseListin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseList
- Specified by:
parseListin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseList
public <T> List<T> parseList(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token currentToken) throws IOException - Specified by:
parseListin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parse
- Specified by:
parsein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parse
- Specified by:
parsein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parse
- Specified by:
parsein interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseSet
- Specified by:
parseSetin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-
parseSet
public <T> Set<T> parseSet(io.avaje.json.JsonReader parser, io.avaje.json.JsonReader.Token currentToken) throws IOException - Specified by:
parseSetin interfaceio.ebean.service.SpiJsonService- Throws:
IOException
-