Customized version of json-api plugin