When I send a Javascript array via Ajax using the POST method like this:
$.post(assignmentsubmitAddress, submittedUnitsArray,
I receive a Status OK
response.
However, when I try to retrieve that data on the server using the Play Framework 2 Dynamic form object like this:
DynamicForm requestData = form().bindFromRequest();
System.out.println(requestData.toString());
I see in the console:
Form(of=class play.data.DynamicForm$Dynamic, data={data[undefined]=}, value=Some(Form.Dynamic({undefined=})), errors={})
Why am I getting:
data={data[undefined]=}
How can I format the JavaScript data so it can be properly read by the Play dynamic form?
What is the best way to parse a JavaScript array in PlayFramework?