PostgresSQL jsonb column - problem with "."

62 Views Asked by At

I'm trying to add the value to my table with a jsonb column:

{"prefId": 1, "prefType": "PREF", "date": "23.07.2020"}

But I'm getting an error:

ERROR: invalid input syntax for type json
  Detail: Token "." is invalid.
  Where: JSON data, line 1: 23.07....

What is the problem and how to solve it?

1

There are 1 best solutions below

1
Asadbek Fayzullaev On

There is an error in date format. Try 23/07/2020 or 23-07-2020