I have a C++ file DBAccess.cpp which holds some function. These function when called, returns a STL list container after fetching data from sqlite3 database. The hex file where all these function are listed is named as DBAccess.h.
I have another file named HTTPmethod.cpp in which I have tested HTTP methods GET and POST successfully.
In HTTPmethod.cpp I have called one of the functions (of DBAccess.cpp) which returns a list container.
Now, My aim is to convert this STL LIST to a JSON string. So that it could be sent to a server.
I know for this I will need a JSON-Cpp Library. But unfortunately I am super confused in making a decision for which JSON-CPP library (There are so many) shall I used for my task ??
Could someone please provide me suggestions based on their experience of such task ?
If possible, I would like to use a library which have a decent documentation and some examples to start with.
all help is appreciated. Thank you
Aucun commentaire:
Enregistrer un commentaire