How to deal with front-end JSONArray or JSONObject data in CGI

before the WEB project uses the framework of java, the data format that the front-end send gives to http is JSONObject or JSONArray,. The operation is slow due to the need to install jvm, to run java on the device. If you want to use C"s open source WEB, if the front-end code remains unchanged, how can you flexibly deal with these data formats in CGI? (CGI is implemented in C language)

Apr.09,2021

found the solution, downloaded cJSON.c and cJSON.h files on the Internet, in which there are interface functions for parsing and generating JSON

Menu