THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
{ "field1" : "str", "ints": [10, 20], "map": { "John":"Galt" }, "newName": "custom" } |
Accepting JSON
Your actions can accept incoming JSON if they are in package which uses json
interceptor or by adding reference to it as follow:
@InterceptorRef(value="json")
JSON RPC
The json plugin can be used to execute action methods from javascript and return the output. This feature was developed with Dojo in mind, so it uses Simple Method Definition to advertise the remote service. Let's work it out with an example(useless as most examples).
...