News for hackers. Stuff that matters.
Re:JSON and Virtual Columns in SQLite by banana_giraffe on Monday May 16, 2022 @06:47PM (#31404004)
Be careful with that. Since you'll end up coercing JSON types into SQLite types doing this, you might run into some odd edge cases. One big one is around big numbers:

    sqlite> select json_extract('[12345678901234567899]','$[0]') % 10;
    7.0
It may never be a problem for you, but it's been a pain point for me dealing with different JSON libraries in the past when people stuff giant numbers into something because their end has no problem with it.

There are no comments on this comment yet.