Bergi
## Bug report for output of JSON values from Postgres
Example query:
```sql
SELECT val, to_jsonb(val)
FROM (VALUES ('a'), ('"a"'), ('ab"cd')) examples(val)
```
Running this in dbfiddle at https://dbfiddle.uk/O9qn4Cex shows `""a""` and `"ab"cd"` for the json string values that contain a quote, where it should display `"\"a\""` and `"ab\"cd"` respectively. The backslash escaping is missing somehow.
Output from dbfiddle:

Output from pgadmin4:

Top Answer
Bergi
Actually it's not just JSON, the problem appears with any backslashes in `text` columns:
```sql
SELECT backslash, length(backslash), quote, length(quote), backslash || quote AS concatenation
FROM (
VALUES (''), ('\'), ('\\')
) a(backslash), (
VALUES (''), ('"'), ('\"')
) b(quote);
```
Expected:

Actual result:
