Class JsonSmartConfigurationHelper

  • All Implemented Interfaces:
    ConfigurationDataRetriever<net.minidev.json.JSONObject>, ConfigurationHelper<net.minidev.json.JSONObject>

    public class JsonSmartConfigurationHelper
    extends GenericJsonConfigurationHelper<net.minidev.json.JSONObject>
    A specialized Configuration Helper that retrieves data from net.minidev's (json-smart) JSONObject, with JSONPath capabilities.
    Since:
    1.0.1
    Author:
    oswaldo.bapvic.jr (Oswaldo Junior)
    • Constructor Detail

      • JsonSmartConfigurationHelper

        public JsonSmartConfigurationHelper​(net.minidev.json.JSONObject jsonObject)
        Creates a new helper for the given JSONObject.
        Parameters:
        jsonObject - the JSON document to be set
    • Method Detail

      • getAsString

        public String getAsString()
        Description copied from interface: ConfigurationDataRetriever
        Returns a string representation of the bean used by this data retriever, typically for manual handling and/or troubleshooting purposes.
        Returns:
        a compact string representation of the JSONObject in context
        Since:
        2.5.0