Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- ALL - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Escapes all JSON special characters and Unicode.
- ALL_BUT_SLASH - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Escapes all JSON special characters and Unicode but slash('/').
- ALL_BUT_SLASH_AND_UNICODE - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Escapes all JSON special characters but slash('/') and Unicode.
- ALL_BUT_UNICODE - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Escapes all JSON special characters but Unicode.
- ALL_UNICODES - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Deprecated.
B
- build(JsonValueBase<?>) - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
-
Creates a
JsonFlattenerby givenJsonValueBaseand configures it with the configurer and jsonCore within thisJsonFlattenerFactory. - build(Reader) - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
-
Creates a
JsonFlattenerby given JSON reader and configures it with the configurer and jsonCore within thisJsonFlattenerFactory. - build(Reader) - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
-
Creates a
JsonUnflattenerby given JSON reader and configures it with the configurer and jsonCore within thisJsonUnflattenerFactory. - build(String) - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
-
Creates a
JsonFlattenerby given JSON string and configures it with the configurer and jsonCore within thisJsonFlattenerFactory. - build(String) - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
-
Creates a
JsonUnflattenerby given JSON string and configures it with the configurer and jsonCore within thisJsonUnflattenerFactory. - build(Map<String, ?>) - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
-
Creates a
JsonUnflattenerby given flattenedMapand configures it with the configurer and jsonCore within thisJsonUnflattenerFactory.
C
- CharSequenceTranslatorFactory - Interface in com.github.wnameless.json.flattener
-
CharSequenceTranslatorFactoryis designed to enhance theStringEscapePolicy.
Any method which accepts aStringEscapePolicy(eg:JsonFlattener#withStringEscapePolicy) now acceptsCharSequenceTranslatorFactoryas well.
Furthermore, anyone can provide their ownStringEscapePolicyby implementing aCharSequenceTranslatorFactory. - com.github.wnameless.json.flattener - module com.github.wnameless.json.flattener
- com.github.wnameless.json.flattener - package com.github.wnameless.json.flattener
- com.github.wnameless.json.unflattener - package com.github.wnameless.json.unflattener
D
- DEFAULT - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Escapes all JSON special characters but slash('/') and Unicode.
E
- equals(Object) - Method in class com.github.wnameless.json.flattener.JsonFlattener
- equals(Object) - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
- equals(Object) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
- equals(Object) - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
F
- flatten() - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON string.
- flatten(JsonValueBase<?>) - Static method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON string.
- flatten(String) - Static method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON string.
- flattenAsMap() - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON as Map.
- flattenAsMap(JsonValueBase<?>) - Static method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON as Map.
- flattenAsMap(String) - Static method in class com.github.wnameless.json.flattener.JsonFlattener
-
Returns a flattened JSON as Map.
- FlattenMode - Enum Class in com.github.wnameless.json.flattener
-
FlattenModelists all acceptable modes of theJsonFlattener.
G
- getCharSequenceTranslator() - Method in interface com.github.wnameless.json.flattener.CharSequenceTranslatorFactory
-
Returns a
CharSequenceTranslator - getCharSequenceTranslator() - Method in enum class com.github.wnameless.json.flattener.StringEscapePolicy
- getCurrent() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
-
Returns the last returned element.
- getIndex() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
-
Returns the index of last returned element.
H
- hashCode() - Method in class com.github.wnameless.json.flattener.JsonFlattener
- hashCode() - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
- hashCode() - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
- hashCode() - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
- hasNext() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
I
- ignoreReservedCharacters() - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
After this option is enable, all reserved characters used in keys will stop to be checked and escaped.
- IndexedPeekIterator<E> - Class in com.github.wnameless.json.flattener
-
IndexedPeekIteratoris an Iterator which provides user apeek()method to peek an element advanced, agetIndex()method to get the index of last returned element and agetCurrent()method to get the last returned element itself. - IndexedPeekIterator(Iterator<? extends E>) - Constructor for class com.github.wnameless.json.flattener.IndexedPeekIterator
-
Creates an
IndexedPeekIterator.
J
- JsonFlattener - Class in com.github.wnameless.json.flattener
-
JsonFlattenerflattens any JSON nested objects or arrays into a flattened JSON string or a Map<Stirng, Object>. - JsonFlattener(JsonCore<?>, JsonValueBase<?>) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given
JsonCoreandJsonValueBase. - JsonFlattener(JsonCore<?>, Reader) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given
JsonCoreand JSON string reader. - JsonFlattener(JsonCore<?>, String) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given
JsonCoreand JSON string. - JsonFlattener(JsonValueBase<?>) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given
JsonValueBase. - JsonFlattener(Reader) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given JSON string reader.
- JsonFlattener(String) - Constructor for class com.github.wnameless.json.flattener.JsonFlattener
-
Creates a JSON flattener by given JSON string.
- JsonFlattenerFactory - Class in com.github.wnameless.json.flattener
-
JsonFlattenerFactorypreserves the configuration of aJsonFlattener, in doing so, any input JSON data can be used to create aJsonFlattenerobject with the same configuration. - JsonFlattenerFactory(Consumer<JsonFlattener>) - Constructor for class com.github.wnameless.json.flattener.JsonFlattenerFactory
-
Returns a
JsonFlattenerFactory. - JsonFlattenerFactory(Consumer<JsonFlattener>, JsonCore<?>) - Constructor for class com.github.wnameless.json.flattener.JsonFlattenerFactory
-
Returns a
JsonFlattenerFactory. - JsonifyArrayList<E> - Class in com.github.wnameless.json.flattener
-
JsonifyArrayListis simply a ArrayList but with an override jsonify toString method. - JsonifyArrayList() - Constructor for class com.github.wnameless.json.flattener.JsonifyArrayList
- JsonifyArrayList(Collection<E>) - Constructor for class com.github.wnameless.json.flattener.JsonifyArrayList
- JsonifyLinkedHashMap<K,
V> - Class in com.github.wnameless.json.flattener -
JsonifyLinkedHashMapis simple a LinkedHashMap but with an override jsonify toString method. - JsonifyLinkedHashMap() - Constructor for class com.github.wnameless.json.flattener.JsonifyLinkedHashMap
- JsonifyLinkedHashMap(Map<K, V>) - Constructor for class com.github.wnameless.json.flattener.JsonifyLinkedHashMap
- JsonUnflattener - Class in com.github.wnameless.json.unflattener
-
JsonUnflattenerprovides a staticJsonUnflattener.unflatten(String)method to unflatten any flattened JSON string back to nested one. - JsonUnflattener(JsonCore<?>, Reader) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given
JsonCoreand JSON string reader. - JsonUnflattener(JsonCore<?>, String) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given
JsonCoreand JSON string. - JsonUnflattener(JsonCore<?>, Map<String, ?>) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given
JsonCoreand flattenedMap. - JsonUnflattener(Reader) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given JSON string reader.
- JsonUnflattener(String) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given JSON string.
- JsonUnflattener(Map<String, ?>) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattener
-
Creates a JSON unflattener by given flattened
Map. - JsonUnflattenerFactory - Class in com.github.wnameless.json.unflattener
-
JsonUnflattenerFactorypreserves the configuration of aJsonUnflattener, in doing so, any input JSON data can be used to create aJsonUnflattenerobject with the same configuration. - JsonUnflattenerFactory(Consumer<JsonUnflattener>) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
-
Returns a
JsonUnflattenerFactory. - JsonUnflattenerFactory(Consumer<JsonUnflattener>, JsonCore<?>) - Constructor for class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
-
Returns a
JsonUnflattenerFactory.
K
- KEEP_ARRAYS - Enum constant in enum class com.github.wnameless.json.flattener.FlattenMode
-
Flattens every object except arrays.
- KEEP_PRIMITIVE_ARRAYS - Enum constant in enum class com.github.wnameless.json.flattener.FlattenMode
-
Flattens every object except arrays which contain only primitive types(strings, numbers, booleans, and null).
- KeyTransformer - Interface in com.github.wnameless.json.flattener
M
- MINIMAL - Enum constant in enum class com.github.wnameless.json.flattener.PrintMode
-
Prints output as minified JSON.
- MONGODB - Enum constant in enum class com.github.wnameless.json.flattener.FlattenMode
-
Conforms to MongoDB dot.notation to update also nested documents.
N
- newIndexedPeekIterator(Iterable<T>) - Static method in class com.github.wnameless.json.flattener.IndexedPeekIterator
-
Creates an
IndexedPeekIteratorby given Iterable. - next() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
- NORMAL - Enum constant in enum class com.github.wnameless.json.flattener.FlattenMode
-
Flattens every object.
- NORMAL - Enum constant in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Deprecated.for removal in 0.17.0 in favor of
StringEscapePolicy.ALL_BUT_UNICODE
P
- peek() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
-
Peeks an element advanced.
- PRETTY - Enum constant in enum class com.github.wnameless.json.flattener.PrintMode
-
Prints output in different lines with necessary indentations.
- PrintMode - Enum Class in com.github.wnameless.json.flattener
-
PrintModelists all acceptable JSON print mode of theJsonFlattener.
R
- remove() - Method in class com.github.wnameless.json.flattener.IndexedPeekIterator
- ROOT - Static variable in class com.github.wnameless.json.flattener.JsonFlattener
-
JsonFlattener.ROOTis the default key of the Map returned byJsonFlattener.flattenAsMap(com.github.wnameless.json.base.JsonValueBase<?>). - ROOT - Static variable in class com.github.wnameless.json.unflattener.JsonUnflattener
-
JsonUnflattener.ROOTis the default key of the Map returned byJsonUnflattener.unflattenAsMap(java.lang.String).
S
- setTranslator(CharSequenceTranslator) - Method in class com.github.wnameless.json.flattener.JsonifyArrayList
- setTranslator(CharSequenceTranslator) - Method in class com.github.wnameless.json.flattener.JsonifyLinkedHashMap
- StringEscapePolicy - Enum Class in com.github.wnameless.json.flattener
-
StringEscapePolicylists all acceptable JSON string escape policy of theJsonFlattener.
T
- toString() - Method in class com.github.wnameless.json.flattener.JsonFlattener
- toString() - Method in class com.github.wnameless.json.flattener.JsonFlattenerFactory
- toString() - Method in class com.github.wnameless.json.flattener.JsonifyArrayList
- toString() - Method in class com.github.wnameless.json.flattener.JsonifyLinkedHashMap
- toString() - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
- toString() - Method in class com.github.wnameless.json.unflattener.JsonUnflattenerFactory
- toString(PrintMode) - Method in class com.github.wnameless.json.flattener.JsonifyArrayList
- toString(PrintMode) - Method in class com.github.wnameless.json.flattener.JsonifyLinkedHashMap
- transform(String) - Method in interface com.github.wnameless.json.flattener.KeyTransformer
-
Transforms the given key by this function.
U
- unflatten() - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a JSON string of nested objects by the given flattened JSON string.
- unflatten(String) - Static method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a JSON string of nested objects by the given flattened JSON string.
- unflatten(Map<String, ?>) - Static method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a JSON string of nested objects by the given flattened Map.
- unflattenAsMap() - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a Java Map of nested objects by the given flattened JSON string.
- unflattenAsMap(String) - Static method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a Java Map of nested objects by the given flattened JSON string.
- unflattenAsMap(Map<String, ?>) - Static method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
Returns a Java Map of nested objects by the given flattened Map.
V
- valueOf(String) - Static method in enum class com.github.wnameless.json.flattener.FlattenMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.wnameless.json.flattener.PrintMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.github.wnameless.json.flattener.FlattenMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.wnameless.json.flattener.PrintMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.github.wnameless.json.flattener.StringEscapePolicy
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- withFlattenMode(FlattenMode) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup a mode of the
JsonFlattener. - withFlattenMode(FlattenMode) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
A fluent setter to setup a mode of the
JsonUnflattener. - withKeyTransformer(KeyTransformer) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup a
KeyTransformerof theJsonFlattener. - withKeyTransformer(KeyTransformer) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
A fluent setter to setup a
KeyTransformerof theJsonUnflattener. - withLeftAndRightBrackets(char, char) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup the left and right brackets within a key in the flattened JSON.
- withLeftAndRightBrackets(char, char) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
A fluent setter to setup the left and right brackets within a key in the flattened JSON.
- withPrintMode(PrintMode) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup a print mode of the
JsonFlattener. - withPrintMode(PrintMode) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
A fluent setter to setup a print mode of the
JsonUnflattener. - withSeparator(char) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup the separator within a key in the flattened JSON.
- withSeparator(char) - Method in class com.github.wnameless.json.unflattener.JsonUnflattener
-
A fluent setter to setup the separator within a key in the flattened JSON.
- withStringEscapePolicy(CharSequenceTranslatorFactory) - Method in class com.github.wnameless.json.flattener.JsonFlattener
-
A fluent setter to setup the JSON string escape policy.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
StringEscapePolicy.ALL