Lines Matching refs:JSON

4 # The JSON parsing commands that CMake provides are rather tedious to use.
5 # Below is a quick reference which tries to map the CMake JSON parsing
8 # * There is no way to iterate over the JSON items. One will first
9 # have to find the number of items using string(JSON ... LENGTH ...)
11 # * The way to get the key from the JSON dictionary is to use the index
12 # of the item and the string(JSON ... MEMBER ... $<index>) function.
13 # * Once you have the key, you can use the string(JSON ... GET ... $<key>)
24 # Each of the above items can be parsed again with the string(JSON ...)
41 string(JSON group_count ERROR_VARIABLE json_error LENGTH ${json_config})
57 string(JSON group_name ERROR_VARIABLE json_error MEMBER ${json_config} ${group_num})
64 string(JSON option_map ERROR_VARIABLE json_error GET ${json_config} ${group_name})
68 string(JSON option_count ERROR_VARIABLE jsor_error LENGTH ${option_map})
78 string(JSON option_name ERROR_VARIABLE json_error MEMBER ${option_map} ${opt_num})
88 string(JSON optdata ERROR_VARIABLE json_error GET ${option_map} ${option_name})
111 string(JSON opt_name ERROR_VARIABLE json_error MEMBER ${opt} 0)
125 string(JSON opt_object ERROR_VARIABLE json_error GET ${opt} ${opt_name})
129 string(JSON opt_value ERROR_VARIABLE jsor_error GET ${opt_object} "value")
143 string(JSON group_count ERROR_VARIABLE json_error LENGTH ${json_config})
181 string(JSON group_name ERROR_VARIABLE json_error MEMBER ${json_config} ${group_num})
186 string(JSON option_map ERROR_VARIABLE json_error GET ${json_config} ${group_name})
190 string(JSON option_count ERROR_VARIABLE jsor_error LENGTH ${option_map})
200 string(JSON option_name ERROR_VARIABLE json_error MEMBER ${option_map} ${opt_num})
204 string(JSON opt_object ERROR_VARIABLE json_error GET ${option_map} ${option_name})
208 string(JSON opt_doc ERROR_VARIABLE json_error GET ${opt_object} "doc")