Added getJSON and setJSON to the API