mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 17:18:18 +00:00
Help: Add 4.3 version tags for string JSON operations
Amend commit15973ff247(string(JSON): Add GET_RAW mode, 2025-12-16) and commit06e6f1e69f(string(JSON): Add STRING_ENCODE mode, 2025-12-16). Fixes: #27633
This commit is contained in:
@@ -569,9 +569,11 @@ string is passed as a single argument even if it contains semicolons.
|
||||
GET_RAW <json-string> [<member|index> ...])
|
||||
:target: JSON-GET-RAW
|
||||
|
||||
.. versionadded:: 4.3
|
||||
|
||||
Get an element from ``<json-string>`` at the location given
|
||||
by the list of ``<member|index>`` arguments. Similar to
|
||||
`GET <JSON-GET_>`__, but does not convert number, string,
|
||||
:cref:`GET <JSON-GET_>`, but does not convert number, string,
|
||||
boolean, or null elements.
|
||||
|
||||
.. signature::
|
||||
@@ -640,5 +642,7 @@ string is passed as a single argument even if it contains semicolons.
|
||||
STRING_ENCODE <string>)
|
||||
:target: STRING-ENCODE
|
||||
|
||||
.. versionadded:: 4.3
|
||||
|
||||
Turn a raw string into a JSON string surrounded by quotes. Special characters
|
||||
will be properly escaped inside the JSON string.
|
||||
|
||||
Reference in New Issue
Block a user