I am trying to post json data to an URL which I have no control. The API document says only json data is accepted. I am thinking whether I can use html form to make it easier.
No. The work to allow JSON formatted data to be directly generated from a form has been discontinued.
To make the request you will need to use either:
Any of these could use an HTML form to collect the data before using it to generate the request to the third party API.