[swallace] PMAPIEndpoint now uses JSON for POST/PUT data