Searched refs:from_text (Results 1 – 9 of 9) sorted by relevance
143 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_profile()182 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_normal_profile()221 let profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_enterprise_mdm_profile()265 let mut profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_debug_profile()310 let mut profile_json =JsonValue::from_text(profile_str).unwrap(); in test_parse_iternaltesting_profile()421 let mut no_type_profile_json =JsonValue::from_text(no_type_profile).unwrap(); in test_parse_invalid_profile()426 let mut no_distribution_profile_json =JsonValue::from_text(no_distribution_profile).unwrap(); in test_parse_invalid_profile()431 let no_debug_info_profile_json =JsonValue::from_text(no_debug_info_profile).unwrap(); in test_parse_invalid_profile()
269 let json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_parse()272 let json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_parse()275 let json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_parse()281 let mut json = JsonValue::from_text(json_text).unwrap(); in sdv_json_modify()329 let mut json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_output()338 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()346 let mut json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_output()355 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()363 let mut json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_output()372 let temp = JsonValue::from_text(&vec).unwrap(); in sdv_json_output()
37 let value = JsonValue::from_text(JSON_TEXT).unwrap(); in main()
23 // 可以使用 from_text 接口,从一系列实现 AsRef<[u8]> 的类型生成 JsonValue 实例。25 let json_value = JsonValue::from_text(text);
25 // You can use `from_text` to generate a `JsonValue` instance from 29 let json_value = JsonValue::from_text(text);
398 let value = JsonValue::from_text($input).unwrap();
717 pub fn from_text<T: AsRef<[u8]>>(text: T) -> Result<Self, Error> { in from_text() method819 Self::from_text(s) in from_str()
49 let value = match JsonValue::from_text(slice) { in ylong_json_parse()
173 let profile_json = JsonValue::from_text(profile)?; in parse_and_validate_profile()