The string(JSON) command gained new GET_RAW and STRING_ENCODE modes.
string(JSON)
GET_RAW
STRING_ENCODE
source_group-genex
CMake 4.2 Release Notes