added json conversion