Uses of Class
name.martingeisse.grumpyjson.json_model.JsonElement
Packages that use JsonElement
Package
Description
-
Uses of JsonElement in name.martingeisse.grumpyjson
Methods in name.martingeisse.grumpyjson that return JsonElementModifier and TypeMethodDescriptionfinal JsonElementStructuralJsonEngine.toJsonElement(Object value) Turns a value into aJsonElement.Methods in name.martingeisse.grumpyjson with parameters of type JsonElementModifier and TypeMethodDescriptionfinal <T> TStructuralJsonEngine.deserialize(JsonElement source, Class<T> clazz) deserializes JSON from aJsonElement.final ObjectStructuralJsonEngine.deserialize(JsonElement source, Type type) deserializes JSON from aJsonElement.final <T> TStructuralJsonEngine.deserialize(JsonElement source, TypeToken<T> typeToken) deserializes JSON from aJsonElement. -
Uses of JsonElement in name.martingeisse.grumpyjson.builtin
Methods in name.martingeisse.grumpyjson.builtin that return JsonElementModifier and TypeMethodDescriptionJsonElementConverter.deserialize(JsonElement json, Type type) JsonElementConverter.serialize(JsonElement value) LocalDateTimeConverter.serialize(LocalDateTime value) Methods in name.martingeisse.grumpyjson.builtin with parameters of type JsonElementModifier and TypeMethodDescriptionBooleanConverter.deserialize(JsonElement json, Type type) EnumConverter.deserialize(JsonElement json, Type type) IntegerConverter.deserialize(JsonElement json, Type type) JsonElementConverter.deserialize(JsonElement json, Type type) List<?>ListConverter.deserialize(JsonElement json, Type type) LocalDateConverter.deserialize(JsonElement json, Type type) LocalDateTimeConverter.deserialize(JsonElement json, Type type) LocalTimeConverter.deserialize(JsonElement json, Type type) LongConverter.deserialize(JsonElement json, Type type) Map<?,?> MapConverter.deserialize(JsonElement json, Type type) StringConverter.deserialize(JsonElement json, Type type) JsonElementConverter.serialize(JsonElement value) -
Uses of JsonElement in name.martingeisse.grumpyjson.builtin.helper_types
Methods in name.martingeisse.grumpyjson.builtin.helper_types that return JsonElementModifier and TypeMethodDescriptionFieldMustBeNullConverter.serialize(FieldMustBeNull value) IgnoredFieldConverter.serialize(IgnoredField value) NullableFieldConverter.serialize(NullableField<?> value) OptionalFieldConverter.serialize(OptionalField<?> value) Methods in name.martingeisse.grumpyjson.builtin.helper_types that return types with arguments of type JsonElementModifier and TypeMethodDescriptionIgnoredFieldConverter.serializeOptional(IgnoredField value) OptionalFieldConverter.serializeOptional(OptionalField<?> value) Methods in name.martingeisse.grumpyjson.builtin.helper_types with parameters of type JsonElementModifier and TypeMethodDescriptionFieldMustBeNullConverter.deserialize(JsonElement json, Type type) IgnoredFieldConverter.deserialize(JsonElement json, Type type) NullableFieldConverter.deserialize(JsonElement json, Type type) OptionalFieldConverter.deserialize(JsonElement json, Type type) -
Uses of JsonElement in name.martingeisse.grumpyjson.builtin.record
Methods in name.martingeisse.grumpyjson.builtin.record that return JsonElementMethods in name.martingeisse.grumpyjson.builtin.record with parameters of type JsonElement -
Uses of JsonElement in name.martingeisse.grumpyjson.deserialize
Methods in name.martingeisse.grumpyjson.deserialize with parameters of type JsonElementModifier and TypeMethodDescriptionCustomJsonDeserializer.DeserializerBody.deserialize(JsonElement json) Deserializes a value.JsonDeserializer.deserialize(JsonElement json, Type type) Converts a value from JSON.default ObjectJsonDeserializerProvider.deserialize(JsonElement source, Type type) Convenience method to find a deserializer for the specifiedType, then use it to deserialize theJsonElement. -
Uses of JsonElement in name.martingeisse.grumpyjson.json_model
Subclasses of JsonElement in name.martingeisse.grumpyjson.json_modelModifier and TypeClassDescriptionclassThis class represents JSON arrays.final classThis class represents the JSON values true and false.final classThis class represents JSON null.final classThis class represents JSON numbers.classThis class represents JSON objects.final classThis class represents JSON strings.Methods in name.martingeisse.grumpyjson.json_model that return types with arguments of type JsonElementModifier and TypeMethodDescriptionfinal List<JsonElement>JsonArray.deserializerExpectsArray()JsonElement.deserializerExpectsArray()If this JSON element is not a JSON array, this method throws aJsonDeserializationException, otherwise it returns the array's elements as aList.JsonElement.deserializerExpectsObject()If this JSON element is not a JSON object, this method throws aJsonDeserializationException, otherwise it returns the array's elements as aMap.final Map<String,JsonElement> JsonObject.deserializerExpectsObject()abstract List<JsonElement>JsonArray.getAsList()Returns the elements of this JSON array as aList.abstract Map<String,JsonElement> JsonObject.getAsMap()Returns the properties of this JSON object as aMap.Methods in name.martingeisse.grumpyjson.json_model with parameters of type JsonElementModifier and TypeMethodDescriptionstatic JsonArrayJsonArray.of(JsonElement... elements) Creates an instance of this class from elements passed as varargs.static JsonObjectJsonObject.of(String key1, JsonElement value1) Creates an instance of this class from one directly specified key/value pair.static JsonObjectJsonObject.of(String key1, JsonElement value1, String key2, JsonElement value2) Creates an instance of this class from two directly specified key/value pairs.static JsonObjectJsonObject.of(String key1, JsonElement value1, String key2, JsonElement value2, String key3, JsonElement value3) Creates an instance of this class from three directly specified key/value pairs.Method parameters in name.martingeisse.grumpyjson.json_model with type arguments of type JsonElementModifier and TypeMethodDescriptionstatic JsonArrayJsonArray.of(List<JsonElement> elements) Creates an instance of this class from aListcontaining the elements of the JSON array.static JsonObjectJsonObject.of(Map<String, JsonElement> properties) Creates an instance of this class from aMapcontaining the properties of the JSON object. -
Uses of JsonElement in name.martingeisse.grumpyjson.serialize
Methods in name.martingeisse.grumpyjson.serialize that return JsonElementModifier and TypeMethodDescriptionSerializes a value.Converts a value to JSON.default JsonElementTurns a value into aJsonElement.Methods in name.martingeisse.grumpyjson.serialize that return types with arguments of type JsonElementModifier and TypeMethodDescriptiondefault Optional<JsonElement>JsonSerializer.serializeOptional(T value) Converts a value to JSON in a context in which a non-existing JSON value can be handled, and therefore supports values that turn out to vanish during serialization, such asOptionalField.default Optional<JsonElement>JsonSerializerProvider.serializeOptional(Object value) Turns a value into an optionalJsonElement.