Skip to content

DataType JSON auto convert to String #25125

@motionrus

Description

@motionrus

To reproduce the problem, I created a dataset from the abc table

create table public.abc
(
  source_id varchar(255) not null,
  json jsonb,
  constraint pk_source_id primary key(source_id)
);

insert into abc (source_id, json) VALUES (1, '{"key": "value"}');

then I checked that my column type was json.
Снимок экрана 2023-08-30 в 16 42 04

and when I get an object for handlebars, I get very upset that I get a string instead of an object.
Снимок экрана 2023-08-30 в 16 48 04

and I can't do {{this.json.key}} because there is a string in the json

{"source_id":"1","json":"{'key': 'value'}"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions