Closed itviewer closed 6 months ago
I'm sorry, but I'm not quite sure what your issue is. Are you referring to JSONB? If so, as mentioned below the input, it is currently read-only, but editing support will be implemented after its official release. If you are talking about regular JSON, although SQLite does not have a specific JSON data type, you should be able to edit JSON data by clicking on the "TEXT" button.
Thank you for your reply.
I encountered a very strange thing. I don’t know if it is a problem with my environment or a problem with sqlite3-editor. I have uploaded my sqlite test file as attachment.
When I open it with sqlite3-editor, some of the columns in the first row are displayed as hexadecimal, but the exact same content in the second row can be displayed as text.
The following screenshots are opened using sqlite3-editor
The following screenshots are opened using Navicat, and there is no problem
the sqlite file
It seems the data in the first row is saved as BLOB. Was the record inserted by another application? If this is a common issue, I can consider adding a feature to treat BLOB data that is parsable as UTF-8 as TEXT.
Yes, the first line is inserted by another application (Navicat opens without problems) and the second line is the first line that I copied manually in Navicat
Should it be understood this way? If the application directly stores the byte array of json content, it is actually blob. If the application stores the string representation of json content, it is actually text. There is no real meaning of the JSON type?
Yes, see this section: https://www.sqlite.org/json1.html#interface_overview
Thanks, now I know this should be handled by another application!
Currently JSON fields are binary and cannot be edited