Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 396 Bytes

File metadata and controls

17 lines (14 loc) · 396 Bytes

Return query paths found in the JSON

If wanting to know paths that exist in the JSON, this can be used to return a list of valid query paths. Useful when wanting to know the structure of the JSON without the values of the nested lists, or the lengths of those arrays.

const queries = JSONway.analyze(myObject)
[
  'aa.bb.cc',
  'dd[]',
  'dd[][]',
  'ff[][]',
  'gg[]'
]