first json output
added some pretty printing of json
shortened output