Class RestJSON


  • @StableMinor(version="16.0",
                 sinceVersion="6.1")
    public class RestJSON
    extends java.lang.Object
    Class that represents the JSON type used in REST.

    Converters that support JSON type in REST must be able to convert from and/or to this type.

    Since:
    6.1.0
    Version:
    $Revision: 25808 $ $Date: 2023-07-04 15:20:55 -0300 (Tue, 04 Jul 2023) $
    • Constructor Summary

      Constructors 
      Constructor Description
      RestJSON​(java.lang.Object value)
      Creates a new REST JSON based on the given object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getValue()
      Returns the value that will be used to generate the JSON.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestJSON

        public RestJSON​(java.lang.Object value)
        Creates a new REST JSON based on the given object.
        Parameters:
        value - the object that will be used to generate the JSON.
        Since:
        6.1.0
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Returns the value that will be used to generate the JSON.
        Returns:
        the value that will be used to generate the JSON.
        Since:
        6.1.0