resource call is now working with json.