Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 575 Bytes

README.md

File metadata and controls

38 lines (35 loc) · 575 Bytes

jsontree

Simple JSON Tree Key Traversing And Searching

If given a simple JSON tree containing nothing but ids as keys and children as arrays of keys like so:

{
 "a": [{
  "b": [{
   "c": []
  }, {
   "d": [{
    "e": [{
     "f": []
    }, {
     "g": []
    }, {
     "h": []
    }, {
     "i": [{
      "j": []
     }, {
      "k": []
     }, {
      "l": []
     }]
    }]
   }]
  }]
 }, {
  "m": []
 }, {
  "n": []
 }]
}

jsontree package gives you tools to traverse and search keys to return dot-notated paths fro use in other packages like gjson.