Metadata-Version: 2.1
Name: objectify-json
Version: 0.2.3
Summary: Make accessing JSON like data more convenient.
Home-page: https://github.com/weaming/objectify-json
Author: weaming
Author-email: garden.yuen@gmail.com
License: UNKNOWN
Project-URL: Source, https://github.com/weaming/objectify-json
Project-URL: Bug Reports, https://github.com/weaming/objectify-json
Keywords: json
Platform: UNKNOWN
Description-Content-Type: text/markdown

# Objectify JSON

Make accessing JSON like data more convenient.

## Features

* Access dict value via dot `.` (`data.a.b.c`).
* Always return `ObjectifyJSON` type, which holds the data having type dict, list or any other primitive types.
* Use `x._data` to get the real data.
* Always return `ObjectifyJSON(None)` if doesn't exist.
* Batch process data
    * Iterate on dict or list via `for` loop. The iteration elements' type are `ObjectifyJSON` too!
    * Iterate on dict via `.fn_keys()`, `.fn_values()` or `.fn_items()`.
    * Process data in a collection via `.fn_map()`, `.fn_reduce()` or `.fn_filter()`.
    * The return values of lambda funtion will always be unwrapped to primitive types.
    * The `fn_*` functions all accept `unwrap` keyword parameter to pass the primitive types to lambda.
* An CLI tool named `object` to process JSON data.

## Install

```
pip3 install objectify-json
```

## Example

See `test.py`


