Add JSON/XML parsing, validity checks and pretty-printing and tests for the same.