Class GsonJsonObjectHelper

  • All Implemented Interfaces:
    ConfigurationDataRetriever<com.google.gson.JsonObject>, ConfigurationHelper<com.google.gson.JsonObject>

    public class GsonJsonObjectHelper
    extends GenericJsonConfigurationHelper<com.google.gson.JsonObject>
    A specialized Configuration Helper that retrieves data from Gson's JsonObject, with JSONPath capabilities.
    Since:
    0.4.0
    Author:
    oswaldo.bapvic.jr (Oswaldo Junior)
    • Constructor Detail

      • GsonJsonObjectHelper

        public GsonJsonObjectHelper​(com.google.gson.JsonObject jsonObject)
        Creates a new helper for the given JsonObject.
        Parameters:
        jsonObject - the JSON document to be set
    • Method Detail

      • configurationMerger

        public ConfigurationMerger<com.google.gson.JsonObject> configurationMerger()
      • getAsString

        public String getAsString()
        Returns:
        a pretty-printed representation of the JsonObject in context
        Since:
        2.5.0