Simple usage question here. If I want to count the size of a json array
- read json file
- count number of entryies in top level array
- save number of entries as a variable
file(read JSON input.json input)
string(JSON len LENGTH ${input} 0 ARRAY_MEMBERS)
set( length_of_array ${len})