added json dump functions