Back to front pageView on Hacker News (opens in a new tab)Show HN: Catj – A new way to display JSON files (opens in a new tab)github.com388 pointsby soheilpro (on Hacker News)7 years agogithub.com (opens in a new tab)GitHub - soheilpro/catj: Displays JSON files in a flat format.Displays JSON files in a flat format. Contribute to soheilpro/catj development by creating an account on GitHub.Comments (120) 40 threadsShow all commentsShowing thread 9 of 40[-]kara_jade7 years ago1 reply#You can do this easily with the json_tree function from SQLite's JSON1 extension. It's given as an example in the documentation:https://sqlite.org/json1.html#jtree SELECT big.rowid, fullkey, value FROM big, json_tree(big.json) WHERE json_tree.type NOT IN ('object','array');ComputerGuru7 years ago#And with the fileio sqlite extension, you can even directly query files (and their contents, and directories recursively too, no less) from SQL.
Show HN: Catj – A new way to display JSON files (opens in a new tab)github.com388 pointsby soheilpro (on Hacker News)7 years ago
kara_jade7 years ago1 reply#You can do this easily with the json_tree function from SQLite's JSON1 extension. It's given as an example in the documentation:https://sqlite.org/json1.html#jtree SELECT big.rowid, fullkey, value FROM big, json_tree(big.json) WHERE json_tree.type NOT IN ('object','array');
ComputerGuru7 years ago#And with the fileio sqlite extension, you can even directly query files (and their contents, and directories recursively too, no less) from SQL.
Comments (120) 40 threads
Show all comments
Showing thread 9 of 40
https://sqlite.org/json1.html#jtree