JSON REST api now working for pulling data