Class JsonStrings
java.lang.Object
io.jenkins.plugins.configsplice.engine.json.JsonStrings
Minimal JSON string literal codec.
Needed in both directions: encode(String) serialises a replacement, and
decode(String) lets the locator prove that a candidate source range really is the token
the structural parser reported, by decoding it and comparing against the parser's own value.
That check is what turns a parser-reported offset from a hint into a verified fact.
-
Method Summary
-
Method Details
-
encode
Serialisesvalueas a complete JSON string literal, including the surrounding quotes. -
decode
Decodes the body of a JSON string literal, i.e. the text between the quotes.- Returns:
- the decoded value, or
nullif the body is not well-formed
-