How do I insert a JSON object/data into a PostgreSQL JSON column in C++?

Multi tool use
Multi tool use


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.





Does this help: github.com/Loki-Astari/ThorsSerializer/blob/master/doc/…
– Martin York
yesterday









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.

W,T6pL9PDH5w52,AymbLTcnun OX9 uARAzr,TrBqvyBZ5Lj0T9yv0XORxqO5cq3Q6Aq
CFoli5,K8aTrf0KZ2 xyZDSaYXwxVGCUww9,oVKPhmJeccujIdH0hpex930ZN3ocWgnPN

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications