#json #methods #value #schema

json-value

Helper method to get the json value

6 releases

0.3.3 Jul 17, 2022
0.3.2 Jul 17, 2022
0.3.0 Jan 9, 2022
0.2.0 Jan 9, 2022
0.1.0 Jan 9, 2022

#84 in #methods

Download history 83/week @ 2025-01-14 5/week @ 2025-01-21 20/week @ 2025-01-28 18/week @ 2025-02-04 5/week @ 2025-02-11 17/week @ 2025-02-18 9/week @ 2025-02-25 1/week @ 2025-03-04 21/week @ 2025-03-18 27/week @ 2025-03-25 5/week @ 2025-04-01 15/week @ 2025-04-08

68 downloads per month
Used in jss-core

MPL-2.0 license

9KB
208 lines

Json Helper Functions

Methods

Function Description
get_key_T Get a reference to the specified key, or a reference if successful
mut_key_T Get mutable reference to the specified key, or a mutable reference if successful
extract_T Extract the specified field, if successful, the field will disappear
is_T Check if the object is the specified type
as_T Get a reference of the specified type, if successful, get a reference
into_T Convert to the specified type, if the failure data will disappear

Dependencies

~0.4–1.1MB
~22K SLoC