SimplePrimitive
Trivial implementation of KpaPrimitive wrapping a plain value.
Intended as a reference implementation for testing or for consumers that do not use a specific JSON library.
Parameters
value
The wrapped value (can be any type, including null).
Properties
Functions
Link copied to clipboard
The string value for strings; "null" for null; value.toString() for all other types.
Link copied to clipboard
Unwraps this KpaElement to its native backing value of type B, or throws if this element is not a BackedKpaElement whose backing is of type B.