Saving REST API JSON to database

How do you save JSON Data to Database? (H2 Database) ? I have a REST API i used which was actually a REST API extension now i want to save the value from the input widget in the database. How can i Do that?

Can you clarify where the data are coming from (e.g. a Bonita form, the output of a Bonita connector execution…)?

Also can you explain if you want to store the data in your own database or in the Bonita BDM database?