Package com.github.wnameless.json.flattener
package com.github.wnameless.json.flattener
-
ClassDescription
CharSequenceTranslatorFactoryis designed to enhance theStringEscapePolicy.
Any method which accepts aStringEscapePolicy(eg:JsonFlattener#withStringEscapePolicy) now acceptsCharSequenceTranslatorFactoryas well.
Furthermore, anyone can provide their ownStringEscapePolicyby implementing aCharSequenceTranslatorFactory.FlattenModelists all acceptable modes of theJsonFlattener.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.JsonFlattenerflattens any JSON nested objects or arrays into a flattened JSON string or a Map<Stirng, Object>.JsonFlattenerFactorypreserves the configuration of aJsonFlattener, in doing so, any input JSON data can be used to create aJsonFlattenerobject with the same configuration.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.PrintModelists all acceptable JSON print mode of theJsonFlattener.StringEscapePolicylists all acceptable JSON string escape policy of theJsonFlattener.