moved from JSONSerializer to RESTSerializer