Changed api and fix for json formatting