Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSON field is string

See original GitHub issue

Having field defined this way Column('abc', JSON), I have to use json.loads to get dict:

rows = await pg.fetch(sql)
async for row in rows:
    print(json.loads( is string

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

achimnolcommented, Aug 22, 2017

This issue is analogous to #45 .

nhumrichcommented, Feb 22, 2018

This is a bug, that requires a lot more work to get working. For now you’ll just have to json decode json feilds I guess. Pr’s welcome 😉

I was premature in saying json decoding will work for you in the release notes. I misunderstood some things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to wrap json in json field like a string?
JSON-encoded stuff is just a string. If you want to embed json-in-json, then the "inner" json has to be encoded into json itself....
Read more >
JSON Syntax - W3Schools
JSON data is written as name/value pairs (aka key/value pairs). A name/value pair consists of a field name (in double quotes), followed by...
Read more >
Using the JSON parser to parse a JSON string into a ... - IBM
The JSON parser generates a schema, with keys included in the list of fields that are available for mapping into later nodes in...
Read more >
Add JSON string in JSON body - Salesforce Stack Exchange
In "machinename", I want to add this other JSON string so that it gets stored in the text field as JSON string ({...
Read more >
Non-string JSON fields - HTTPie 3.2.1 (latest) docs
Non-string JSON fields use the := separator, which allows you to embed arbitrary JSON data into the resulting JSON object. Additionally, text and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found