Json (cayenne-doc: Cayenne Documentation 5.0-M2 API)
Description: declaration: package: org.apache.cayenne.value, class: Json

# Class Json

java.lang.Object
org.apache.cayenne.value.Json

All Implemented Interfaces:
  `Serializable`

public class Json extends Object implements Serializable
A Cayenne-supported values object that holds Json string.

Since:
  4.2
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Json(String json)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `String`
  `getRawJson()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Json

    public Json(String json)
    Parameters:
      `json` - json string representation
    Throws:
      `MalformedJsonException` - if json is empty or blank

- ## Method Details

  - ### getRawJson

    public String getRawJson()

  - ### equals

    public boolean equals(Object o)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`