I want to format a string containing JSON data using Java. Does anybody know an open source library for that.
Update to previous answer by skaffman, with newer versions of Jackson (2+, I think). The second line of code is now:
objectMapper.configure(SerializationFeature.INDENT_OUTPUT, true);