Package net.obvj.confectory.mapper
Class GsonJsonObjectMapper
- java.lang.Object
-
- net.obvj.confectory.mapper.GsonJsonToObjectMapper<com.google.gson.JsonObject>
-
- net.obvj.confectory.mapper.GsonJsonObjectMapper
-
- All Implemented Interfaces:
Mapper<com.google.gson.JsonObject>
public class GsonJsonObjectMapper extends GsonJsonToObjectMapper<com.google.gson.JsonObject> implements Mapper<com.google.gson.JsonObject>
A specializedMapperthat loads the contents of a valid JSONSource(e.g.: file, URL, string) as aJsonObject, using Gson.This allows fetching the contents using JSONPath expressions.
Additional details may be found at Gson's official documentation.
- Since:
- 0.4.0
- Author:
- oswaldo.bapvic.jr (Oswaldo Junior)
-
-
Constructor Summary
Constructors Constructor Description GsonJsonObjectMapper()Builds a new JSON mapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationHelper<com.google.gson.JsonObject>configurationHelper(com.google.gson.JsonObject jsonObject)-
Methods inherited from class net.obvj.confectory.mapper.GsonJsonToObjectMapper
apply
-
-
-
-
Method Detail
-
configurationHelper
public ConfigurationHelper<com.google.gson.JsonObject> configurationHelper(com.google.gson.JsonObject jsonObject)
- Specified by:
configurationHelperin interfaceMapper<com.google.gson.JsonObject>- Overrides:
configurationHelperin classGsonJsonToObjectMapper<com.google.gson.JsonObject>
-
-