Added WriteJSON/ReadJSON deprecated methods for backwards compatibility.