Corrected calls for jsons. Deleted deprecated method