How do I insert a JSON object/data into a PostgreSQL JSON column in C++?
How do I insert a JSON object/data into a PostgreSQL JSON column in C++?
I have a json column field in my postgresql table (Postgresql 9.3). I need to insert the json data through C++. I tried inserting it as string but a string stores the double quotes with an escape character, which is not recognized by postgresql while executing the query. I also tried using a structured data, but unable to insert it. Please help.
I am open to use boost library or cpprest for json library.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Does this help: github.com/Loki-Astari/ThorsSerializer/blob/master/doc/…
– Martin York
yesterday