added json api call
Fixed