semvec/pypi-packages huggingface dataset:
jprint2 0.4.1
Simple JSON printer for Python - print colorized, formatted JSON with one function
License: MIT
Requires Python: >=3.8

# jprint2

Print Python objects as colorized, formatted JSON.

![Example](docs/example.png)

## Installation

```bash
pip install jprint2
```

## Usage

```python
def jprint(*objects: Any, indent: bool = True) -> None:
   ...
```

```python
>>> from jprint2 import jprint
>>> jprint("a", "b", "c")
[
  "a",
  "b",
  "c"
]
>>> jprint({"name": "Mark", "mood": 10})
{
  "name": "Mark",
  "mood": 10
}
>>> jprint({"name": "Mark", "age": 30}, indent=False)
{"name": "Mark", "age": 30}

```

## License

MIT License

## Author

Mark Lidenberg [marklidenberg@gmail.com](mailto:marklidenberg@gmail.com)