cmake string(JSON) examples

assimp/assimp cmake-modules/CoverallsGenerateGcov.cmake :476

string(CONFIGURE ${JSON_TEMPLATE} JSON)

catchorg/Catch2 extras/CatchAddTests.cmake :138

string(JSON version GET "${listing_output}" "version")

catchorg/Catch2 extras/CatchAddTests.cmake :144

string(JSON test_listing GET "${listing_output}" "listings" "tests")

catchorg/Catch2 extras/CatchAddTests.cmake :145

string(JSON num_tests LENGTH "${test_listing}")

catchorg/Catch2 extras/CatchAddTests.cmake :156

string(JSON single_test GET ${test_listing} ${idx})

catchorg/Catch2 extras/CatchAddTests.cmake :157

string(JSON test_tags GET "${single_test}" "tags")

catchorg/Catch2 extras/CatchAddTests.cmake :158

string(JSON plain_name GET "${single_test}" "name")

catchorg/Catch2 extras/CatchAddTests.cmake :190

string(JSON num_tags LENGTH "${test_tags}")

catchorg/Catch2 extras/CatchAddTests.cmake :195

string(JSON a_tag GET "${test_tags}" "${tag_idx}")

pantor/inja cmake/CoverallsGenerateGcov.cmake :478

string(CONFIGURE ${JSON_TEMPLATE} JSON)

qt/qt5 coin/provisioning/common/shared/vcpkg_parse_packages.cmake :15

string(JSON element_count LENGTH "${result}")

qt/qt5 coin/provisioning/common/shared/vcpkg_parse_packages.cmake :20

string(JSON package MEMBER "${result}" "${i}")

qt/qt5 coin/provisioning/common/shared/vcpkg_parse_packages.cmake :33

string(JSON package_info GET "${result}" "${package}")

qt/qt5 coin/provisioning/common/shared/vcpkg_parse_packages.cmake :34

string(JSON version GET "${package_info}" "version")

spglib/spglib cmake/DynamicVersion.cmake :272

string(JSON failed GET ${data} failed)

spglib/spglib cmake/DynamicVersion.cmake :273

string(JSON ${ARGS_OUTPUT_VERSION} GET ${data} version)

spglib/spglib cmake/DynamicVersion.cmake :274

string(JSON ${ARGS_OUTPUT_VERSION_FULL} GET ${data} version-full)

spglib/spglib cmake/DynamicVersion.cmake :277

string(JSON ${ARGS_OUTPUT_SHORT_HASH} ERROR_VARIABLE _ GET ${data} short-hash)

spglib/spglib cmake/DynamicVersion.cmake :278

string(JSON ${ARGS_OUTPUT_DISTANCE} ERROR_VARIABLE _ GET ${data} distance)

spglib/spglib cmake/DynamicVersion.cmake :280

string(JSON ${ARGS_OUTPUT_COMMIT} ERROR_VARIABLE _ GET ${data} commit)

spglib/spglib cmake/DynamicVersion.cmake :281

string(JSON ${ARGS_OUTPUT_DESCRIBE} ERROR_VARIABLE _ GET ${data} describe)

spglib/spglib cmake/DynamicVersion.cmake :409

string(JSON data SET ${data} failed true)

spglib/spglib cmake/DynamicVersion.cmake :411

string(JSON data SET ${data} allow-fails true)

spglib/spglib cmake/DynamicVersion.cmake :413

string(JSON data SET ${data} allow-fails false)

spglib/spglib cmake/DynamicVersion.cmake :418

string(JSON data SET
        ${data} version \"${ARGS_FALLBACK_VERSION}\")

spglib/spglib cmake/DynamicVersion.cmake :420

string(JSON data SET
        ${data} version-full \"${ARGS_FALLBACK_VERSION}\")

spglib/spglib cmake/DynamicVersion.cmake :425

string(JSON data SET
        ${data} commit \"${ARGS_FALLBACK_HASH}\")

spglib/spglib cmake/DynamicVersion.cmake :475

string(JSON data SET
        ${data} dev-type \"${CMAKE_MATCH_5}\")

spglib/spglib cmake/DynamicVersion.cmake :609

string(JSON data SET ${data}
        mode \"${mode}\"
)

spglib/spglib cmake/DynamicVersion.cmake :612

string(JSON data SET ${data}
        version \"${version}\"
)

spglib/spglib cmake/DynamicVersion.cmake :616

string(JSON data SET ${data}
        version-full \"${version-full}\"
)

spglib/spglib cmake/DynamicVersion.cmake :620

string(JSON data SET ${data}
        describe \"${describe}\"
)

spglib/spglib cmake/DynamicVersion.cmake :626

string(JSON data SET ${data}
        commit \"${commit}\"
)

spglib/spglib cmake/DynamicVersion.cmake :634

string(JSON data SET ${data}
        version-suffix \"${version-suffix}\"
)

spglib/spglib cmake/DynamicVersion.cmake :637

string(JSON data SET ${data}
        distance ${distance}
)

spglib/spglib cmake/DynamicVersion.cmake :641

string(JSON data SET ${data}
        short-hash \"${short-hash}\"
)

spglib/spglib cmake/DynamicVersion.cmake :647

string(JSON data SET ${data} failed false)

apple/swift Runtimes/Core/cmake/modules/CatalystSupport.cmake :33

string(JSON module_triple GET "${target_info_json}" "target" "moduleTriple")

apple/swift Runtimes/Core/cmake/modules/CatalystSupport.cmake :38

string(JSON triple GET "${target_info_json}" "target" "triple")

apple/swift Runtimes/Core/cmake/modules/PlatformInfo.cmake :23

string(JSON module_triple GET "${target_info_json}" "target" "moduleTriple")

apple/swift Runtimes/Core/cmake/modules/PlatformInfo.cmake :31

string(JSON platform GET "${target_info_json}" "target" "platform")

apple/swift Runtimes/Core/cmake/modules/PlatformInfo.cmake :39

string(JSON arch GET "${target_info_json}" "target" "arch")

apple/swift Runtimes/Overlay/cmake/modules/PlatformInfo.cmake :11

string(JSON module_triple GET "${target_info_json}" "target" "moduleTriple")

apple/swift Runtimes/Overlay/cmake/modules/PlatformInfo.cmake :19

string(JSON platform GET "${target_info_json}" "target" "platform")

apple/swift Runtimes/Overlay/cmake/modules/PlatformInfo.cmake :27

string(JSON arch GET "${target_info_json}" "target" "arch")

apple/swift Runtimes/Supplemental/cmake/modules/CatalystSupport.cmake :35

string(JSON module_triple GET "${target_info_json}" "target" "moduleTriple")

apple/swift Runtimes/Supplemental/cmake/modules/PlatformInfo.cmake :17

string(JSON module_triple GET "${target_info_json}" "target" "moduleTriple")

apple/swift Runtimes/Supplemental/cmake/modules/PlatformInfo.cmake :25

string(JSON platform GET "${target_info_json}" "target" "platform")

apple/swift Runtimes/Supplemental/cmake/modules/PlatformInfo.cmake :33

string(JSON arch GET "${target_info_json}" "target" "arch")

microsoft/vcpkg ports/skia/skia-functions.cmake :199

string(JSON array ERROR_VARIABLE error GET "${json}" ${ARGN})

microsoft/vcpkg ports/skia/skia-functions.cmake :201

string(JSON len ERROR_VARIABLE error LENGTH "${array}")

microsoft/vcpkg ports/skia/skia-functions.cmake :205

string(JSON item GET "${array}" "${i}")

microsoft/vcpkg ports/skia/skia-functions.cmake :235

string(JSON current_json GET "${${desc_var}}" "${gn_target}")

microsoft/vcpkg ports/skia/skia-functions.cmake :236

string(JSON target_type GET "${current_json}" "type")

microsoft/vcpkg ports/skia/skia-functions.cmake :370

string(JSON target_type GET "${desc}" "${gn_target}" "type")

microsoft/vcpkg ports/skia/skia-functions.cmake :373

string(JSON sources ERROR_VARIABLE unused GET "${desc}" "${gn_target}" "sources")

microsoft/vcpkg scripts/cmake/vcpkg_from_github.cmake :69

string(JSON head_version
    ERROR_VARIABLE head_version_err
    GET "${version_contents}"
    "object"
    "sha"
)

microsoft/vcpkg scripts/detect_compiler/CMakeLists.txt :26

string(JSON COMPILER_EXISTS ERROR_VARIABLE JSON_ERROR GET "${JSON_CONTENT}" "${compiler_path}")

microsoft/vcpkg scripts/detect_compiler/CMakeLists.txt :29

string(JSON SIZE_JSON GET "${JSON_CONTENT}" "${compiler_path}" "size")

microsoft/vcpkg scripts/detect_compiler/CMakeLists.txt :30

string(JSON TIMESTAMP_JSON GET "${JSON_CONTENT}" "${compiler_path}" "timestamp")

microsoft/vcpkg scripts/detect_compiler/CMakeLists.txt :31

string(JSON HASH_JSON GET "${JSON_CONTENT}" "${compiler_path}" "hash")

microsoft/vcpkg scripts/detect_compiler/CMakeLists.txt :39

string(JSON JSON_CONTENT SET "${JSON_CONTENT}" "${compiler_path}" "{\"size\": ${SIZE}, \"timestamp\": ${TIMESTAMP}, \"hash\": \"${HASH}\"}")

microsoft/vcpkg scripts/test_ports/cmake-user/portfile.cmake :65

string(JSON packages_json GET "${vcpkg_json}" "features" "find-package" "dependencies")

microsoft/vcpkg scripts/test_ports/cmake-user/portfile.cmake :66

string(JSON packages_count LENGTH "${packages_json}")

microsoft/vcpkg scripts/test_ports/cmake-user/portfile.cmake :73

string(JSON port GET "${packages_json}" "${i}" "name")

microsoft/vcpkg scripts/test_ports/cmake-user/portfile.cmake :77

string(JSON since ERROR_VARIABLE since_not_found GET "${packages_json}" "${i}" "\$since")

microsoft/vcpkg scripts/test_ports/cmake-user/portfile.cmake :84

string(JSON package GET "${packages_json}" "${i}" "\$package")