Uses of Interface
org.spincast.core.json.JsonArray
Package
Description
-
Uses of JsonArray in org.spincast.core.guice
-
Uses of JsonArray in org.spincast.core.json
Modifier and TypeMethodDescriptionInserts an object at the specified index in the array.Adds an object at the specified index.Adds an object at the end of the array.Adds an object at the end of the array.Adds all elements at the end of the array.Adds elements at the end of the array.JsonArray.addAll
(Collection<?> values) Adds all elements at the end of the array.JsonArray.addAll
(Collection<?> values, boolean clone) Adds all elements at the end of the array.Adds all elements at the end of the array.Adds elements at the end of the array.JsonArrayDefault.addAll
(Collection<?> values) JsonArrayDefault.addAll
(Collection<?> values, boolean clone) protected JsonArray
protected JsonArray
JsonArrayDefault.clear()
JsonArray.clone
(boolean mutable) Deep copy of theJsonArray
, so any modification to the original won't affect the clone, and vice-versa.JsonArrayDefault.clone
(boolean mutable) JsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) Deep copy of theJsonArray
, so any modification to the original won't affect the clone, and vice-versa.ToJsonArrayConvertible.convertToJsonArray()
Converts the object to aJsonArray
.JsonManager.createArray()
Creates an emptyJsonArray
.JsonObjectFactory.createArray()
Creates an empty and mutable JsonArray.JsonObjectFactory.createArray
(List<Object> elements, boolean mutable) Creates a JsonArray based on the List.JsonManager.enumsToFriendlyJsonArray
(Enum<?>[] enumValues) Convert the enums to an array ofJsonObjects
that have a ".name" property (thename()
of the enum) and a ".label" property (thetoString()
of the enum).JsonManager.fromCollectionToJsonArray
(Collection<?> collection) Creates aJsonArray
from a random collection.JsonManager.fromInputStreamArray
(InputStream inputStream) Creates aJsonArray
from an inputStream.JsonManager.fromListArray
(List<?> elements) Creates aJsonArray
from aList
of elements.JsonManager.fromStringArray
(String jsonString) Creates aJsonArray
from aJson
String.JsonArray.getArrayFirstJsonArray
(int index) Gets the first element (as JsonArray) of aJsonArray
element.JsonArray.getArrayFirstJsonArray
(int index, JsonArray defaultValue) Gets the first element (as JsonArray) of aJsonArray
element.JsonArrayDefault.getArrayFirstJsonArray
(int index) JsonArrayDefault.getArrayFirstJsonArray
(int index, JsonArray defaultValue) JsonObjectArrayBase.getArrayFirstJsonArray
(String key) protected JsonArray
JsonObjectArrayBase.getArrayFirstJsonArray
(String key, boolean parseJsonPath, boolean hasdefaultElement, JsonArray defaultElement) JsonObjectArrayBase.getArrayFirstJsonArray
(String key, JsonArray defaultElement) JsonObjectOrArray.getArrayFirstJsonArray
(String jsonPath) Gets the first value (as JsonArray) of aJsonArray
property of the object, using theJsonPath
to find the array.JsonObjectOrArray.getArrayFirstJsonArray
(String jsonPath, JsonArray defaultElement) Gets the first value (as JsonArray) of aJsonArray
property of the object, using theJsonPath
to find the array.JsonObject.getArrayFirstJsonArrayNoKeyParsing
(String key) Gets the first value (as JsonArray) of aJsonArray
element .JsonObject.getArrayFirstJsonArrayNoKeyParsing
(String key, JsonArray defaultElement) Gets the first value (as JsonArray) of aJsonArray
element .JsonObjectArrayBase.getArrayFirstJsonArrayNoKeyParsing
(String key) JsonObjectArrayBase.getArrayFirstJsonArrayNoKeyParsing
(String key, JsonArray defaultElement) JsonArray.getJsonArray
(int index) Gets an element asJsonArray
.JsonArray.getJsonArray
(int index, JsonArray defaultValue) Gets an element asJsonArray
.JsonArrayDefault.getJsonArray
(int index) JsonArrayDefault.getJsonArray
(int index, JsonArray defaultValue) JsonObjectArrayBase.getJsonArray
(String jsonPath) protected JsonArray
JsonObjectArrayBase.getJsonArray
(String jsonPath, boolean hasdefaultElement, JsonArray defaultElement, boolean parseJsonPath) JsonObjectArrayBase.getJsonArray
(String jsonPath, JsonArray defaultElement) JsonObjectOrArray.getJsonArray
(String jsonPath) Gets an element asJsonArray
using the specifiedJsonPath
.JsonObjectOrArray.getJsonArray
(String jsonPath, JsonArray defaultElement) Gets an element asJsonArray
using the specifiedJsonPath
.protected JsonArray
JsonObjectArrayBase.getJsonArrayFromObject
(Object object) JsonObject.getJsonArrayNoKeyParsing
(String jsonPath) Gets an element asJsonArray
.JsonObject.getJsonArrayNoKeyParsing
(String jsonPath, JsonArray defaultElement) Gets an element asJsonArray
.JsonObjectArrayBase.getJsonArrayNoKeyParsing
(String jsonPath) JsonObjectArrayBase.getJsonArrayNoKeyParsing
(String jsonPath, JsonArray defaultElement) JsonArray.getJsonArrayOrEmpty
(int index) Gets an element asJsonArray
.JsonArrayDefault.getJsonArrayOrEmpty
(int index) JsonObjectArrayBase.getJsonArrayOrEmpty
(String jsonPath) JsonObjectArrayBase.getJsonArrayOrEmpty
(String jsonPath, boolean addIfDoesntExist) JsonObjectOrArray.getJsonArrayOrEmpty
(String jsonPath) Gets an element asJsonArray
using the specifiedJsonPath
.JsonObjectOrArray.getJsonArrayOrEmpty
(String jsonPath, boolean addIfDoesntExist) Gets an element asJsonArray
using the specifiedJsonPath
.JsonObject.getJsonArrayOrEmptyNoKeyParsing
(String jsonPath) Gets an element asJsonArray
.JsonObjectArrayBase.getJsonArrayOrEmptyNoKeyParsing
(String jsonPath) protected JsonArray
JsonArray.remove
(int index) Removes an element at the specified index.JsonArrayDefault.remove
(int index) Sets an object at the specified index.Sets an object at the specified index.protected JsonArray
JsonArrayDefault.setOrAddAsIs
(Integer index, Object value, boolean insert) Modifier and TypeMethodDescriptionAdds all elements at the end of the array.Adds elements at the end of the array.JsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) Deep copy of theJsonArray
, so any modification to the original won't affect the clone, and vice-versa.JsonArray.getArrayFirstJsonArray
(int index, JsonArray defaultValue) Gets the first element (as JsonArray) of aJsonArray
element.JsonArrayDefault.getArrayFirstJsonArray
(int index, JsonArray defaultValue) protected JsonArray
JsonObjectArrayBase.getArrayFirstJsonArray
(String key, boolean parseJsonPath, boolean hasdefaultElement, JsonArray defaultElement) JsonObjectArrayBase.getArrayFirstJsonArray
(String key, JsonArray defaultElement) JsonObjectOrArray.getArrayFirstJsonArray
(String jsonPath, JsonArray defaultElement) Gets the first value (as JsonArray) of aJsonArray
property of the object, using theJsonPath
to find the array.JsonObject.getArrayFirstJsonArrayNoKeyParsing
(String key, JsonArray defaultElement) Gets the first value (as JsonArray) of aJsonArray
element .JsonObjectArrayBase.getArrayFirstJsonArrayNoKeyParsing
(String key, JsonArray defaultElement) JsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath) Gets an element from theJsonArray
at the specifiedJsonPath
.JsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath, Object defaultElement) Gets an element from theJsonArray
at the specifiedJsonPath
.JsonPathUtils.getElementAtJsonPath
(JsonArray array, String jsonPath) Gets an element from theJsonArray
, at the specifiedJsonPath
.JsonPathUtils.getElementAtJsonPath
(JsonArray array, String jsonPath, Object defaultElement) Gets an element from theJsonArray
, at the specifiedJsonPath
.JsonPathUtilsDefault.getElementAtJsonPath
(JsonArray array, String jsonPath) JsonPathUtilsDefault.getElementAtJsonPath
(JsonArray array, String jsonPath, Object defaultElement) JsonArray.getJsonArray
(int index, JsonArray defaultValue) Gets an element asJsonArray
.JsonArrayDefault.getJsonArray
(int index, JsonArray defaultValue) protected JsonArray
JsonObjectArrayBase.getJsonArray
(String jsonPath, boolean hasdefaultElement, JsonArray defaultElement, boolean parseJsonPath) JsonObjectArrayBase.getJsonArray
(String jsonPath, JsonArray defaultElement) JsonObjectOrArray.getJsonArray
(String jsonPath, JsonArray defaultElement) Gets an element asJsonArray
using the specifiedJsonPath
.JsonObject.getJsonArrayNoKeyParsing
(String jsonPath, JsonArray defaultElement) Gets an element asJsonArray
.JsonObjectArrayBase.getJsonArrayNoKeyParsing
(String jsonPath, JsonArray defaultElement) boolean
JsonManager.isElementExists
(JsonArray array, String jsonPath) Does the array contain an element at the specifiedJsonPath
(even ifnull
)?boolean
JsonPathUtils.isElementExists
(JsonArray array, String jsonPath) Does the array contain an element at theJsonPath
position (even ifnull
)?boolean
JsonPathUtilsDefault.isElementExists
(JsonArray array, String jsonPath) boolean
JsonArray.isEquivalentTo
(JsonArray other) Compares the currentJsonArray
to the specified one and returnstrue
if they are equivalent.boolean
JsonArrayDefault.isEquivalentTo
(JsonArray other) void
JsonManager.removeElementAtJsonPath
(JsonArray array, String jsonPath) Removes an element at the specifiedJsonPath
from the array.void
JsonPathUtils.removeElementAtJsonPath
(JsonArray array, String jsonPath) Removes an element at the specifiedJsonPath
from the array.void
JsonPathUtilsDefault.removeElementAtJsonPath
(JsonArray array, String jsonPath) protected Object
JsonPathUtilsDefault.selectValueUsingJsonPath
(JsonArray array, String jsonPath, boolean hasDefaultValue, Object defaultElement) -
Uses of JsonArray in org.spincast.core.utils
Modifier and TypeMethodDescriptionObjectConverter.convertToJsonArray
(Object element) Converts the element to aJsonArray
.ObjectConverterDefault.convertToJsonArray
(Object object) -
Uses of JsonArray in org.spincast.core.xml
Modifier and TypeMethodDescriptionXmlManager.fromXmlToJsonArray
(String xml) Deserializes a XML to anJsonArray
. -
Uses of JsonArray in org.spincast.plugins.gson
Modifier and TypeMethodDescriptionSpincastGsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) SpincastGsonManager.createArray()
SpincastGsonManager.enumsToFriendlyJsonArray
(Enum<?>[] enumValues) SpincastGsonManager.fromCollectionToJsonArray
(Collection<?> collection) SpincastGsonManager.fromInputStreamArray
(InputStream inputStream) SpincastGsonManager.fromListArray
(List<?> elements) SpincastGsonManager.fromStringArray
(String jsonString) Modifier and TypeMethodDescriptionprotected com.google.gson.JsonDeserializer<JsonArray>
SpincastGsonManager.getJsonArrayDeserializer()
SpincastGsonPluginModule.getJsonArrayDeserializerImpl()
protected com.google.gson.JsonSerializer<JsonArray>
SpincastGsonManager.getJsonArraySerializer()
SpincastGsonPluginModule.getJsonArraySerializerImpl()
Modifier and TypeMethodDescriptionSpincastGsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) SpincastGsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath) SpincastGsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath, Object defaultValue) boolean
SpincastGsonManager.isElementExists
(JsonArray array, String jsonPath) void
SpincastGsonManager.removeElementAtJsonPath
(JsonArray array, String jsonPath) -
Uses of JsonArray in org.spincast.plugins.gson.serializers
Modifier and TypeMethodDescriptionJsonArrayDeserializer.deserialize
(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) -
Uses of JsonArray in org.spincast.plugins.jacksonjson
Modifier and TypeMethodDescriptionSpincastJsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) SpincastJsonManager.createArray()
SpincastJsonManager.enumsToFriendlyJsonArray
(Enum<?>[] enumValues) SpincastJsonManager.fromCollectionToJsonArray
(Collection<?> collection) SpincastJsonManager.fromInputStreamArray
(InputStream inputStream) SpincastJsonManager.fromListArray
(List<?> elements) SpincastJsonManager.fromStringArray
(String jsonString) Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonDeserializer<JsonArray>
SpincastJsonManager.getJsonArrayDeserializer()
protected com.fasterxml.jackson.databind.JsonSerializer<JsonArray>
SpincastJsonManager.getJsonArraySerializer()
Modifier and TypeMethodDescriptionSpincastJsonManager.cloneJsonArray
(JsonArray jsonArray, boolean mutable) SpincastJsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath) SpincastJsonManager.getElementAtJsonPath
(JsonArray array, String jsonPath, Object defaultValue) boolean
SpincastJsonManager.isElementExists
(JsonArray array, String jsonPath) void
SpincastJsonManager.removeElementAtJsonPath
(JsonArray array, String jsonPath) -
Uses of JsonArray in org.spincast.plugins.jacksonxml
Modifier and TypeInterfaceDescriptionprotected static interface
Modifier and TypeMethodDescriptionprotected JsonArray
SpincastXmlManager.deserializeJsonArray
(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser xmlParser, com.fasterxml.jackson.databind.DeserializationContext context) protected JsonArray
SpincastXmlManager.deserializeJsonArray
(com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser xmlParser, com.fasterxml.jackson.databind.DeserializationContext context, boolean firstElementSkipped) SpincastXmlManager.fromXmlToJsonArray
(String xml) Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonDeserializer<JsonArray>
SpincastXmlManager.getJsonArrayDeserializer()
protected com.fasterxml.jackson.databind.JsonSerializer<JsonArray>
SpincastXmlManager.getJsonArraySerializer()
-
Uses of JsonArray in org.spincast.plugins.pebble
Modifier and TypeMethodDescriptionprotected com.mitchellbosecke.pebble.attributes.ResolvedAttribute
SpincastMainPebbleExtensionDefault.resolveJsonArrayAttribute
(JsonArray arr, int pos, com.mitchellbosecke.pebble.template.EvaluationContextImpl context)