- java.lang.Object
-
- swim.json.Json
-
public final class Json extends Object
Factory for constructing JSON parsers and writers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Decoder<T>
formDecoder(Form<T> form)
static <T> Encoder<T,T>
formEncoder(Form<T> form)
static <T> Parser<T>
formParser(Form<T> form)
static <T> Writer<T,T>
formWriter(Form<T> form)
static Value
parse(String json)
static Parser<Value>
parser()
static JsonParser<Item,Value>
structureParser()
static JsonWriter<Item,Value>
structureWriter()
static Data
toData(Item item)
static String
toString(Item item)
static Writer<?,?>
write(Output<?> output, Item item)
-
-
-
Method Detail
-
structureParser
public static JsonParser<Item,Value> structureParser()
-
structureWriter
public static JsonWriter<Item,Value> structureWriter()
-
-