Interface JsonElement<T>

All Superinterfaces:
de.espirit.firstspirit.json.JsonOutput
All Known Subinterfaces:
JsonArray, JsonBooleanValue, JsonDateValue, JsonNullValue, JsonNumberValue, JsonObject, JsonPair, JsonStringValue

@NonExtendable @Experimental public interface JsonElement<T> extends de.espirit.firstspirit.json.JsonOutput
Root interface for any kind of value that could be part of a json object. Implementing classes are allowed to handle any type of object as long as the final result conforms to a valid json value. CAUTION: This class is still in development and may change drastically without any further notice.
Since:
5.2.191206
See Also:
  • JsonOutput
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the contained value object.

    Methods inherited from interface de.espirit.firstspirit.json.JsonOutput

    json, writeTo
  • Method Details

    • getValue

      @Nullable T getValue()
      Gets the contained value object.
      Returns:
      The contained value object.
      Since:
      5.2.191206