added json api
added json json support