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 3 of 40twp7 years ago#I wrote a similar tool:https://github.com/twpayne/flatjsonThe flat format is great for diffs: --- testdata/a.json +++ testdata/b.json @@ -1,5 +1,6 @@ root = {}; root.menu = {}; +root.menu.disabled = true; root.menu.id = "file"; root.menu.popup = {}; root.menu.popup.menuitem = []; @@ -9,8 +10,5 @@ root.menu.popup.menuitem[1] = {}; root.menu.popup.menuitem[1].onclick = "OpenDoc()"; root.menu.popup.menuitem[1].value = "Open"; -root.menu.popup.menuitem[2] = {}; -root.menu.popup.menuitem[2].onclick = "CloseDoc()"; -root.menu.popup.menuitem[2].value = "Close"; -root.menu.value = "File"; +root.menu.value = "File menu";
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
twp7 years ago#I wrote a similar tool:https://github.com/twpayne/flatjsonThe flat format is great for diffs: --- testdata/a.json +++ testdata/b.json @@ -1,5 +1,6 @@ root = {}; root.menu = {}; +root.menu.disabled = true; root.menu.id = "file"; root.menu.popup = {}; root.menu.popup.menuitem = []; @@ -9,8 +10,5 @@ root.menu.popup.menuitem[1] = {}; root.menu.popup.menuitem[1].onclick = "OpenDoc()"; root.menu.popup.menuitem[1].value = "Open"; -root.menu.popup.menuitem[2] = {}; -root.menu.popup.menuitem[2].onclick = "CloseDoc()"; -root.menu.popup.menuitem[2].value = "Close"; -root.menu.value = "File"; +root.menu.value = "File menu";
Comments (120) 40 threads
Show all comments
Showing thread 3 of 40
https://github.com/twpayne/flatjson
The flat format is great for diffs: