Does setJson and getJson need to be public?