Package se.arkalix.dto.json.value

JSON Value Types

This package contains classes useful for manually constructing JSON values. The JsonArray and JsonObject classes may, in particular, be used as-is as DTOs. The other classes may be used as members in DTO interfaces that only need to ever deal with JSON input.

The following is an example meant to illustrate how to construct the JSON object `{"x": 1}`:

     final var object = new JsonObject(
         new JsonPair("x", new JsonNumber(1))
 
See Also:
RFC 8259