How to post MAF form data to Rest service in Json format?

196 views Asked by At

I have created a REST service which is working fine with GET method.

I want to post form data in JSON format with POST method. I have a ready form in MAF and a REST service which is working with GET.

How can I connect both using REST/JSON Service.

1

There are 1 answers

0
User404 On

Convert your inputted data to your POJO object (the same you use to perform your GET) and then convert the POJO back to JSON and perform a POST.

An example can be found here: Please click this link.