added json capability