Class JSONBoolean

java.lang.Object
ch.epfl.cs107.play.data.json.JSONValue
ch.epfl.cs107.play.data.json.JSONBoolean

public final class JSONBoolean extends JSONValue
  • Field Details

  • Method Details

    • valueOf

      public static JSONBoolean valueOf(boolean value)
    • getValue

      public boolean getValue()
      Returns the boolean value of this JSON boolean.
    • toJSONString

      protected String toJSONString()
      Description copied from class: JSONValue
      Serializes the implementing class to a JSON-formatted string.
      Specified by:
      toJSONString in class JSONValue
      Returns:
      A JSON-formatted string representation of the object.