public static String compress ( String input , JSONStyle style ) { try { StringBuilder sb = new StringBuilder ( ) ; new JSONParser ( DEFAULT_PERMISSIVE_MODE ) . parse ( input , new CompessorMapper ( defaultReader , sb , style ) ) ; return sb . toString ( ) ; } catch ( Exception e ) { return input ; } }
Reformat Json input keeping element order