Lines Matching refs:Object
14 use crate::{Array, JsonValue, Object};
147 /// Uses key to visit Object type JsonValue, and returns a common reference to corresponding JsonValue.
152 /// 2.The searched Object type does not contain the key.
156 /// use ylong_json::{JsonValue, Object};
161 /// // Object type
162 /// let mut object = Object::new();
165 /// let value = JsonValue::Object(object);
174 if let JsonValue::Object(ref object) = value {
180 /// Uses key to visit Object type JsonValue, and returns a mutable reference to corresponding JsonValue.
182 /// If the visited JsonValue is not Object type, the JsonValue will be
183 /// replaced with an empty Object type and visits again with that key.
191 /// use ylong_json::{JsonValue, Object};
195 /// let mut object = Object::new();
199 /// assert_eq!(value, JsonValue::Object(object));
201 /// // Object type
202 /// let mut object = Object::new();
204 /// let mut value = JsonValue::Object(object);
217 if let JsonValue::Object(ref mut object) = value {
238 *value = JsonValue::Object(Object::new());
242 /// Removes the element at the specified location of Object type JsonValue and returns that content.
246 /// use ylong_json::{Object, JsonValue};
248 /// let mut object = Object::new();
259 if let JsonValue::Object(ref mut object) = value {
318 use crate::{Array, Index, JsonValue, Object};