Uses of Interface
com.clumd.projects.javajson.api.Json
| Package | Description |
|---|---|
| com.clumd.projects.javajson.api | |
| com.clumd.projects.javajson.core |
-
Uses of Json in com.clumd.projects.javajson.api
Methods in com.clumd.projects.javajson.api that return Json Modifier and Type Method Description JsonJsonBuilder. build()Used to finalise the current builder into a fully compiled Java-JSON object.JsonJsonGenerator. convertToJSON()Convert the current Java Class into a Java-JSON JSON representation of itself.JsonJson. createFromMultilineString(List<String> jsonFragment)Convert the contents of consecutive Strings into the JSON representation of them.JsonJson. createFromString(String jsonFragment)Convert the contents of a String into the JSON representation.JsonJson. getAny()Used to get the JSON datatype of the current object regardless of the underlying datatype it represents.JsonJson. getAnyAt(String key)The same asgetAny, but at a path in the JSON given by key.JsonJson. getJSONObject()Used to get the Object value of this JSON object, if it was itself, an Object.JsonJson. getJSONObjectAt(String key)The same asgetJSONObject, but at a path in the JSON given by key.static JsonJsonParser. parse(JsonGenerator jsonable)A pass-through method to convert any object marked as capable of converting itself to JSON, into the JSON equivalent.static JsonJsonParser. parse(String jsonAsString)Parse a single JSON object from String.static JsonJsonParser. parse(String[] jsonAsStringArray)Parse a static array of strings into a single JSON object.static JsonJsonParser. parse(Collection<String> jsonAsStringCollection)Parse a collection of strings into a single JSON object.Methods in com.clumd.projects.javajson.api that return types with arguments of type Json Modifier and Type Method Description List<Json>Json. getArray()Used to get the array value of this JSON object, if it was itself, an array.List<Json>Json. getArrayAt(String key)The same asgetArray, but at a path in the JSON given by key.List<Json>Json. getValues()Used to get a list of all values of the current JSON object.List<Json>Json. getValuesOf(String key)The same asgetValues, but at a path in the JSON given by key.static List<Json>JsonParser. parseMultipleJSONables(Collection<JsonGenerator> multipleJsonAsGenerators)Parse a collection of Java Objects marked as capable of converting themselves to JSON into a multiple JSON objects.static Set<Json>JsonParser. parseMultipleJSONablesForDistinct(Collection<JsonGenerator> multipleJsonAsGenerators)The same asJsonParser.parseMultipleJSONables(Collection), but any duplicates will be filtered out.static List<Json>JsonParser. parseMultipleStrings(Collection<String> multipleJsonAsStrings)Parse a collection of strings into a multiple JSON objects.static Set<Json>JsonParser. parseMultipleStringsForDistinct(Collection<String> multipleJsonAsStrings)The same asJsonParser.parseMultipleStrings(Collection), but any duplicates will be filtered out.Methods in com.clumd.projects.javajson.api with parameters of type Json Modifier and Type Method Description JsonBuilderJsonBuilder. addBuilderBlock(String path, Json value)Use an existing, compiled piece of JSON, converted to a JsonBuilder, then assigned to the value at the path.JsonBuilderJsonBuilder. convertFromJSON(Json json)Break a full JSON object down into a builder representation of itself to be added to.EJsonMapper. mapToClass(Json json)Used to convert the given JSON into a pure, top level Java object.static booleanJsonSchemaEnforcer. validate(Json objectToValidate, Json againstSchema)A static equivalent ofJsonSchemaEnforcer.validateWithReasoning(Json, Json).static booleanJsonSchemaEnforcer. validateStrict(Json objectToValidate, Json againstSchema)A static equivalent ofJsonSchemaEnforceable.validateWithOutReasoning(Json, Json).default booleanJsonSchemaEnforceable. validateWithOutReasoning(Json objectToValidate, Json againstSchema)Validate but never throw exceptionsbooleanJsonSchemaEnforceable. validateWithReasoning(Json objectToValidate, Json againstSchema)Validate with the potential to throw exceptions to the caller.booleanJsonSchemaEnforcer. validateWithReasoning(Json objectToValidate, Json againstSchema) -
Uses of Json in com.clumd.projects.javajson.core
Methods in com.clumd.projects.javajson.core that return Json Modifier and Type Method Description JsonBasicJsonBuilder. build()JsonBasicJsonBuilder. convertToJSON()Methods in com.clumd.projects.javajson.core with parameters of type Json Modifier and Type Method Description JsonBuilderBasicJsonBuilder. addBuilderBlock(String path, Json value)JsonBuilderBasicJsonBuilder. convertFromJSON(Json json)