Hi

you can call "input function" - jsonb_in

Jsonb *targetjsonbvar = DatumGetJsonb(DirectFunctionCall1(json_in,
CStringGetDatum(cstrvalue)));

Regards

Pavel Stehule



2015-02-13 11:32 GMT+01:00 Igor Stassiy <istas...@gmail.com>:

> Hi,
>
> Is there a way to initialize JsonbValue from cstring from public c api in
> postgres 9.4? Without the use of functions declared with PG_FUNCTION_ARGS
> <http://doxygen.postgresql.org/fmgr_8h.html#adf4dec9b7d23f1b4c68477affde8b7ff>
> .
>
> I posted the following question earlier, but received no reply. Please have
> a look:
>
> "postgresql jsonb processing with c api
> <http://www.postgresql.org/message-id/cakvojex6wtqmvfzsmx5vwhgfc3yympp2dqnkcppcbauk+1p...@mail.gmail.com>
> "
>
>
> http://www.postgresql.org/message-id/cakvojex6wtqmvfzsmx5vwhgfc3yympp2dqnkcppcbauk+1p...@mail.gmail.com
>

Reply via email to