working on json dump