
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Make accessing JSON like data more convenient.
.
(data.a.b.c
).ObjectifyJSON
type, which holds the data with type of dict, list or any other primitive types.x._data
to get the real data.ObjectifyJSON(None)
if doesn't exist.object
to process JSON data.pip3 install objectify-json
See test.py
ObjectifyJOSN
too!fn_*
functions accept optional unwrap
parameter to enable passing the underlying value as primitive types to lambda. Default is False.map
, it will retry to get function with prefix fn_
added to the name. This will simplify writting the CLI command.Following methods of ObjectifyJOSN
accept optional unwrap
to unwrap ObjectifyJOSN
data to the underlying built-in data, the default value is False
.
fn_map(fn, unwrap=False)
: map
on the iteratorfn_reduce(fn, initializer=None, unwrap=False)
: reduce
on the iterator, lambda as the first positional parameter, optional initializer
parameter will be passed to built-in reduce
.fn_lambda(fn, unwrap=False)
: value in-and-outfn_filter(fn, unwrap=False)
: filter
on the iteratorfn_keys()
: Return keys as list.fn_values()
: Return values as list.fn_items()
: Return items as list. Element has the type tuple
, e.g. ("key", "value")
.fn_include_keys(keys)
: Filter dict. Keep the keys
you give.fn_exclude_keys(keys)
: Filter dict. Remove the keys
you give.fn_filter_by_value(fn)
: Filter dict. Filter by the lambda you give, which accept the value of dict item.fn_filter_by_kv(fn)
: Filter dict. Filter by the lambda you give, which accept key
and value
two variables.fn_update(key, fn, unwrap=False)
: Update dict value. The lambda you give accept the origin value and return a new value.fn_items_update(fn, unwrap=False)
: Update dict value. The lambda you give accept key
and value
two variables and return a new value.fn_rename(mapping)
: Update dict key. The mapping
is a list of two-elements list.fn_sort(fn)
: Sort the list in place. The lambda you give will be passed as key
argument to the sort
method of list.fn_dedup(fn=None, all=True)
: Dedup the elements in list. If all
if False
, the duplication will checked by comparing current value between last value, else will compare to all appeared before.FAQs
Make accessing JSON like data more convenient.
We found that objectify-json demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.