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 6 of 40emmelaich7 years ago#Augeas can do something similar too. But not only JSON but XML and 200+ other config file formats.[0] $ augtool -r . -L --transform 'JSON.lns incl /catj-eg.json' <<< 'print /files/catj-eg.json' /files/catj-eg.json /files/catj-eg.json/dict /files/catj-eg.json/dict/entry = "movie" /files/catj-eg.json/dict/entry/dict /files/catj-eg.json/dict/entry/dict/entry[1] = "name" /files/catj-eg.json/dict/entry/dict/entry[1]/string = "Interstellar" /files/catj-eg.json/dict/entry/dict/entry[2] = "year" /files/catj-eg.json/dict/entry/dict/entry[2]/number = "2014" /files/catj-eg.json/dict/entry/dict/entry[3] = "is_released" /files/catj-eg.json/dict/entry/dict/entry[3]/const = "true" /files/catj-eg.json/dict/entry/dict/entry[4] = "director" /files/catj-eg.json/dict/entry/dict/entry[4]/string = "Christopher Nolan" /files/catj-eg.json/dict/entry/dict/entry[5] = "cast" /files/catj-eg.json/dict/entry/dict/entry[5]/array /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[1] = "Matthew McConaughey" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[2] = "Anne Hathaway" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[3] = "Jessica Chastain" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[4] = "Bill Irwin" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[5] = "Ellen Burstyn" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[6] = "Michael Caine" [0] $ ls .../share/augeas/lenses/dist/|wc 221 221 2867
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
emmelaich7 years ago#Augeas can do something similar too. But not only JSON but XML and 200+ other config file formats.[0] $ augtool -r . -L --transform 'JSON.lns incl /catj-eg.json' <<< 'print /files/catj-eg.json' /files/catj-eg.json /files/catj-eg.json/dict /files/catj-eg.json/dict/entry = "movie" /files/catj-eg.json/dict/entry/dict /files/catj-eg.json/dict/entry/dict/entry[1] = "name" /files/catj-eg.json/dict/entry/dict/entry[1]/string = "Interstellar" /files/catj-eg.json/dict/entry/dict/entry[2] = "year" /files/catj-eg.json/dict/entry/dict/entry[2]/number = "2014" /files/catj-eg.json/dict/entry/dict/entry[3] = "is_released" /files/catj-eg.json/dict/entry/dict/entry[3]/const = "true" /files/catj-eg.json/dict/entry/dict/entry[4] = "director" /files/catj-eg.json/dict/entry/dict/entry[4]/string = "Christopher Nolan" /files/catj-eg.json/dict/entry/dict/entry[5] = "cast" /files/catj-eg.json/dict/entry/dict/entry[5]/array /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[1] = "Matthew McConaughey" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[2] = "Anne Hathaway" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[3] = "Jessica Chastain" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[4] = "Bill Irwin" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[5] = "Ellen Burstyn" /files/catj-eg.json/dict/entry/dict/entry[5]/array/string[6] = "Michael Caine" [0] $ ls .../share/augeas/lenses/dist/|wc 221 221 2867
Comments (120) 40 threads
Show all comments
Showing thread 6 of 40