added json api part, verified results