definy.json-string-literal
- description
- The JSON string literal of value (with double quotes)
- type
Fn(value: String) -> String
- expression
fn(value$0) =>
let bytes$1 = @core.string-to-bytes(value: $0);
@core.string-concat(
left: "\"",
right: @core.string-concat(
left: @definy.json-escape-range(value: $0, bytes: $1, start: 0, end: @core.list-length(value: $1)),
right: "\""
)
)- visibility
- public
definy.json-string-literal (project definy, branch release-time-compare, snapshot JJrRgQW_LZN6tN8CbYr1dN7HosqNTuIWWYx7ACbt1n0)
id: Q_eJ69yCCE8-UnkEHTxDryXtZ-_n7I_Xt-QnTzEcjUA
content hash: oRr2VN3uL-8m4BIzIDq9_SKNcQIsPNyQGEMhyBPkxVw