json read/write working

(read json output)