public String flatten ( ) { flattenAsMap ( ) ; if ( source . isObject ( ) || isObjectifiableArray ( ) ) return flattenedMap . toString ( printMode ) ; else return javaObj2Json ( flattenedMap . get ( ROOT ) ) ; }
Returns a flattened JSON string .