added getJson method