Encode a string to json Parameters ---------- value: New string value
(self, value: str)
| 10586 | return JSONValue(_ctx) |
| 10587 | |
| 10588 | def new_string(self, value: str) -> Self: |
| 10589 | """Encode a string to json |
| 10590 | |
| 10591 | Parameters |
| 10592 | ---------- |
| 10593 | value: |
| 10594 | New string value |
| 10595 | """ |
| 10596 | _args = [ |
| 10597 | Arg("value", value), |
| 10598 | ] |
| 10599 | _ctx = self._select("newString", _args) |
| 10600 | return JSONValue(_ctx) |
| 10601 | |
| 10602 | def with_contents(self, contents: JSON) -> Self: |
| 10603 | """Return a new json value, decoded from the given content |