adding spahql json query api