changed api result format to JSON