Package org.apache.cayenne.value

# Class Json

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

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

Since:
  4.2

- ## 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 java.lang.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`