Package com.github.wnameless.json.flattener
-
Interface Summary Interface Description CharSequenceTranslatorFactory CharSequenceTranslatorFactoryis designed to enhance theStringEscapePolicy.
Any method which accepts aStringEscapePolicy(eg:JsonFlattener#withStringEscapePolicy) now acceptsCharSequenceTranslatorFactoryas well.
Furthermore, anyone can provide their ownStringEscapePolicyby implementing aCharSequenceTranslatorFactory.KeyTransformer -
Class Summary Class Description IndexedPeekIterator<E> IndexedPeekIteratoris an Iterator which provides user aIndexedPeekIterator.peek()method to peek an element advanced, aIndexedPeekIterator.getIndex()method to get the index of last returned element and aIndexedPeekIterator.getCurrent()method to get the last returned element itself.JsonFlattener JsonFlattenerflattens any JSON nested objects or arrays into a flattened JSON string or a Map<Stirng, Object>.JsonFlattenerFactory JsonFlattenerFactorypreserves the configuration of aJsonFlattener, in doing so, any input JSON data can be used to create aJsonFlattenerobject with the same configuration.JsonifyArrayList<E> JsonifyArrayListis simply a ArrayList but with an override jsonify toString method.JsonifyLinkedHashMap<K,V> JsonifyLinkedHashMapis simple a LinkedHashMap but with an override jsonify toString method. -
Enum Summary Enum Description FlattenMode FlattenModelists all acceptable modes of theJsonFlattener.PrintMode PrintModelists all acceptable JSON print mode of theJsonFlattener.StringEscapePolicy StringEscapePolicylists all acceptable JSON string escape policy of theJsonFlattener.