Return a new json value, decoded from the given content Parameters ---------- contents: New JSON-encoded contents
(self, contents: JSON)
| 10600 | return JSONValue(_ctx) |
| 10601 | |
| 10602 | def with_contents(self, contents: JSON) -> Self: |
| 10603 | """Return a new json value, decoded from the given content |
| 10604 | |
| 10605 | Parameters |
| 10606 | ---------- |
| 10607 | contents: |
| 10608 | New JSON-encoded contents |
| 10609 | """ |
| 10610 | _args = [ |
| 10611 | Arg("contents", contents), |
| 10612 | ] |
| 10613 | _ctx = self._select("withContents", _args) |
| 10614 | return JSONValue(_ctx) |
| 10615 | |
| 10616 | def with_field(self, path: list[str], value: Self) -> Self: |
| 10617 | """Set a new field at the given path |