java.lang.Object
org.jooq.JSON
- All Implemented Interfaces:
- Serializable,- Data
A JSON wrapper type for JSON data obtained from the database.
 
 The wrapper represents JSON data() in serialised string form. A
 CAST(NULL AS JSON) value is represented by a null
 reference of type JSON, not as data() == null. This is
 consistent with jOOQ's general way of returning NULL from
 Result and Record methods.
 
 Unlike the normalising JSONB data type, the JSON type uses a
 purely text based, formatting-preserving representation of the JSON content,
 meaning that e.g. the following two documents are not equal, due to
 their different object attribute order and formatting:
 
- {"a":1,"b":2}
- {"b": 2, "a": 1}
This impacts the behaviour of
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionfinal @NotNull Stringdata()booleaninthashCode()static final @NotNull JSONCreate a newJSONinstance from string data input.static final @Nullable JSONjsonOrNull(String data) toString()static final @NotNull JSONCreate a newJSONinstance from string data input.
- 
Method Details- 
dataDescription copied from interface:Data
- 
valueOfCreate a newJSONinstance from string data input.
- 
jsonCreate a newJSONinstance from string data input.This is the same as valueOf(String), but it can be static imported.
- 
jsonOrNull
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-