Gets the root value if its an object.
(&self)
| 1209 | |
| 1210 | /// Gets the root value if its an object. |
| 1211 | pub fn object_value(&self) -> Option<CstObject> { |
| 1212 | self.value()?.as_object() |
| 1213 | } |
| 1214 | |
| 1215 | /// Gets or creates the root value as an object, returns `Some` if successful |
| 1216 | /// or `None` if the root value already exists and is not an object. |