Skip to content

Is there any way to disable json decoding on json/jsonb fields? #476

Open
@niwinz

Description

@niwinz

Hi

Is there any way to disable json decoding on queries that involves json/jsonb fields? I'm working on the clojure (https://github.com/vertx-clojure) adaptation of the pgclient and I found that when I make the query (with jsonb fields) and the resulting rows has the jsonb fields already decoded to JsonObject.

The problem is that converting that JsonObject (or JsonArrray) to something usable in clojure has the overhead of unnecessary data copying (or json encode/decode round-trip). Would be awesome to be able disable builtin json decoding (and leave is as text...); this will allow decode it directly to clojure data structures without additional copy and/or encode/decode process.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions