Moved jsonError method to a static method in RestMethodResult.
Added jsonMessage as a static method of RestMethodResult