clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Please support JSON / Object('json') type - at least [bulk] inserts

Open v-instrumentix opened this issue 1 year ago • 4 comments

Dear all, my app (c++) needs to populate JSON column. Is there a plan to add support for it?

I made attempt to add JSON following implementation for String type (https://github.com/v-instrumentix/clickhouse-cpp.git - sorry if you find it nasty), but ended with server error

DB::Exception: Syntax error (data type): failed at position 1 ('{'): {"a":false, "b":true, "c":0, "d":1, "e":"Hello", "d":"", "z":null}. Expected one of: data type, nested table, identifier.

..that looks as I miss something about the protocol / encoding, and this is where I stuck. Any hints would be welcome.

Thanks!

v-instrumentix avatar May 23 '23 13:05 v-instrumentix