jsonToObj was deprecated