added json support in UI