Post JSON-Data from PlayFramework form
问题 Play Framework provides a way to access JSON-Data in a request-body via request().body().asJson() . Using form-helpers does not post data in JSON-format. So, what is the best way, in a play-application, to convert the form-data to a json-object before passing it to the controller? Thanks in advance. 回答1: When you retrieve request payload data you can use either BodyParsers (they use the Content-Type header to parse the payload into something else) or you can get the payload yourself via form