Hi,
I want to build a website running on an OpenWRT Client that POSTs a JSON-String to a backend on the server.
This backend should read the JSON-String, run c-code with the parameters from the JSON and return the result of the c-code via JSON-String to the webpage.
| WEBPAGE | BACKEND | c-PROGRAMM
(1) post JSOn -> (2) parse and call --> (3) run and return
|
(4) parse to JSON <---
|
(5) receive JSON <---
I can see that Luci is working with JSON-Strings, perhaps I could use something of that.
Can anyone please help me how I could realize that?