Add JSON/XML formatter support

Signed-off-by: David Zafman <david.zafman@inktank.com>