json-parser/README.md

450 lines
20 KiB
Markdown
Raw Normal View History

2022-09-15 23:37:30 +02:00
# 🧩 JSON Parser
2022-09-16 07:17:51 +10:00
[![Author][ico-author]][link-author]
[![PHP Version][ico-php]][link-php]
[![Build Status][ico-actions]][link-actions]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
2022-12-29 21:32:35 +10:00
[![PHPStan Level][ico-phpstan]][link-phpstan]
2022-09-16 07:17:51 +10:00
[![Latest Version][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
2023-01-12 21:22:34 +10:00
[![PSR-7][ico-psr7]][link-psr7]
2022-09-16 07:17:51 +10:00
[![PSR-12][ico-psr12]][link-psr12]
[![Total Downloads][ico-downloads]][link-downloads]
2023-01-12 21:22:34 +10:00
Zero-dependencies pull parser to read large JSON from any source in a memory-efficient way.
2022-09-16 07:17:51 +10:00
## 📦 Install
Via Composer:
``` bash
2022-09-15 23:37:30 +02:00
composer require cerbero/json-parser
2022-09-16 07:17:51 +10:00
```
## 🔮 Usage
2023-02-25 20:30:19 +10:00
* [👣 Basics](#basics)
* [💧 Sources](#sources)
* [🎯 Pointers](#pointers)
* [⚙️ Decoders](#decoders)
* [💢 Errors](#errors)
* [⏳ Progress](#progress)
2023-01-12 21:22:34 +10:00
2023-01-19 20:42:55 +10:00
2023-02-25 20:30:19 +10:00
### 👣 Basics
2023-01-19 20:42:55 +10:00
2023-01-12 21:22:34 +10:00
JSON Parser provides a minimal API to read large JSON from any source:
```php
2023-02-25 20:30:19 +10:00
// a source is anything that can provide a JSON, in this case an endpoint
2023-01-12 21:22:34 +10:00
$source = 'https://randomuser.me/api/1.4?seed=json-parser&results=5';
foreach (new JsonParser($source) as $key => $value) {
// instead of loading the whole JSON, we keep in memory only one key and value at a time
}
```
2023-02-25 20:30:19 +10:00
Depending on our code style, we can instantiate the parser in 3 different ways:
2023-01-12 21:22:34 +10:00
```php
use Cerbero\JsonParser\JsonParser;
2023-02-25 20:30:19 +10:00
use function Cerbero\JsonParser\parseJson;
2023-01-12 21:22:34 +10:00
// classic object instantiation
new JsonParser($source);
2023-02-25 20:30:19 +10:00
// static instantiation
2023-01-12 21:22:34 +10:00
JsonParser::parse($source);
// namespaced function
parseJson($source);
```
2023-01-19 20:42:55 +10:00
If we don't want to use `foreach()` to loop through each key and value, we can chain the `traverse()` method:
```php
JsonParser::parse($source)->traverse(function (mixed $value, string|int $key, JsonParser $parser) {
// lazily load one key and value at a time, we can also access the parser if needed
});
// no foreach needed
```
> ⚠️ Please note the parameters order of the callback: the value is passed before the key.
2023-02-25 20:30:19 +10:00
### 💧 Sources
2023-01-12 21:22:34 +10:00
A wide range of JSON sources is supported, here is the full list:
2023-01-13 20:56:14 +10:00
- **strings**, e.g. `{"foo":"bar"}`
- **iterables**, i.e. arrays or instances of `Traversable`
2023-02-25 20:30:19 +10:00
- **file paths**, e.g. `/path/to/large.json`
2023-01-13 20:56:14 +10:00
- **resources**, e.g. streams
- **API endpoint URLs**, e.g. `https://endpoint.json` or any instance of `Psr\Http\Message\UriInterface`
- **PSR-7 requests**, i.e. any instance of `Psr\Http\Message\RequestInterface`
- **PSR-7 messages**, i.e. any instance of `Psr\Http\Message\MessageInterface`
- **PSR-7 streams**, i.e. any instance of `Psr\Http\Message\StreamInterface`
- **Laravel HTTP client responses**, i.e. any instance of `Illuminate\Http\Client\Response`
- **user-defined sources**, i.e. any instance of `Cerbero\JsonParser\Sources\Source`
2022-09-16 07:17:51 +10:00
2023-01-13 20:49:59 +10:00
If the source we need to parse is not supported by default, we can implement our own custom source.
2023-01-13 20:56:14 +10:00
<details><summary><b>Click here to see how to implement a custom source.</b></summary>
2023-01-13 20:49:59 +10:00
To implement a custom source, we need to extend `Source` and implement 3 methods:
```php
use Cerbero\JsonParser\Sources\Source;
use Traversable;
class CustomSource extends Source
{
public function getIterator(): Traversable
{
// return a Traversable holding the JSON source, e.g. a Generator yielding chunks of JSON
}
public function matches(): bool
{
// return TRUE if this class can handle the JSON source
}
protected function calculateSize(): ?int
{
// return the size of the JSON in bytes or NULL if it can't be calculated
}
}
```
The parent class `Source` gives us access to 2 properties:
- `$source`: the JSON source we pass to the parser, i.e.: `new JsonParser($source)`
- `$config`: the configuration we set by chaining methods, e.g.: `$parser->pointer('/foo')`
The method `getIterator()` defines the logic to read the JSON source in a memory-efficient way. It feeds the parser with small pieces of JSON. Please refer to the [already existing sources](https://github.com/cerbero90/json-parser/tree/master/src/Sources) to see some implementations.
The method `matches()` determines whether the JSON source passed to the parser can be handled by our custom implementation. In other words, we are telling the parser if it should use our class for the JSON to parse.
2023-02-01 22:25:13 +10:00
Finally, `calculateSize()` computes the whole size of the JSON source. It's used to track the [parsing progress](#progress), however it's not always possible to know the size of a JSON source. In this case, or if we don't need to track the progress, we can return `null`.
2023-01-19 19:52:52 +10:00
Now that we have implemented our custom source, we can pass it to the parser:
```php
$json = JsonParser::parse(new CustomSource($source));
foreach ($json as $key => $value) {
// process one key and value of $source at a time
}
```
2023-01-19 20:27:42 +10:00
If you find yourself implementing the same custom source in different projects, feel free to send a PR and we will consider to support your custom source by default. Thank you in advance for any contribution!
2023-01-13 20:49:59 +10:00
</details>
2023-01-14 10:15:59 +10:00
2023-02-25 20:30:19 +10:00
### 🎯 Pointers
2023-01-14 10:15:59 +10:00
2023-01-14 10:42:59 +10:00
A JSON pointer is a [standard](https://www.rfc-editor.org/rfc/rfc6901) used to point to nodes within a JSON. This package leverages JSON pointers to extract only some sub-trees from large JSONs.
2023-01-14 10:15:59 +10:00
Consider [this JSON](https://randomuser.me/api/1.4?seed=json-parser&results=5) for example. To extract only the first gender and avoid parsing the rest of the JSON, we can set the `/0/gender` pointer:
```php
$json = JsonParser::parse($source)->pointer('/0/gender');
foreach ($json as $key => $value) {
// 1st and only iteration: $key === 'gender', $value === 'female'
}
```
2023-01-14 17:53:44 +10:00
JSON Parser takes advantage of the `-` character to point to any array index, so we can extract all the genders with the `/-/gender` pointer:
2023-01-14 10:15:59 +10:00
```php
$json = JsonParser::parse($source)->pointer('/-/gender');
foreach ($json as $key => $value) {
// 1st iteration: $key === 'gender', $value === 'female'
// 2nd iteration: $key === 'gender', $value === 'female'
// 3rd iteration: $key === 'gender', $value === 'male'
// and so on for all the objects in the array...
}
```
If we want to extract more sub-trees, we can set multiple pointers. Let's extract all genders and countries:
```php
$json = JsonParser::parse($source)->pointers(['/-/gender', '/-/location/country']);
foreach ($json as $key => $value) {
// 1st iteration: $key === 'gender', $value === 'female'
// 2nd iteration: $key === 'country', $value === 'Germany'
// 3rd iteration: $key === 'gender', $value === 'female'
// 4th iteration: $key === 'country', $value === 'Mexico'
// and so on for all the objects in the array...
}
```
2023-01-14 17:53:44 +10:00
> ⚠️ Please avoid intersecting pointers (e.g. setting both `/foo` and `/foo/bar`) as the deeper pointer won't be found and will force the parser to parse the whole JSON.
2023-01-14 10:42:59 +10:00
We can also specify a callback to execute when JSON pointers are found. This is handy when we have different pointers and we need to run custom logic for each of them:
2023-01-14 10:15:59 +10:00
```php
$json = JsonParser::parse($source)->pointers([
'/-/gender' => fn (string $gender, string $key) => new Gender($gender),
'/-/location/country' => fn (string $country, string $key) => new Country($country),
]);
foreach ($json as $key => $value) {
// 1st iteration: $key === 'gender', $value instanceof Gender
// 2nd iteration: $key === 'country', $value instanceof Country
// and so on for all the objects in the array...
}
```
2023-01-14 13:13:10 +10:00
> ⚠️ Please note the parameters order of the callbacks: the value is passed before the key.
2023-01-14 10:42:59 +10:00
The same can also be achieved by chaining the method `pointer()` multiple times:
```php
$json = JsonParser::parse($source)
->pointer('/-/gender', fn (string $gender, string $key) => new Gender($gender))
->pointer('/-/location/country', fn (string $country, string $key) => new Country($country));
2023-01-14 13:13:10 +10:00
foreach ($json as $key => $value) {
// 1st iteration: $key === 'gender', $value instanceof Gender
// 2nd iteration: $key === 'country', $value instanceof Country
// and so on for all the objects in the array...
}
```
If the callbacks are enough to handle the pointers and we don't need to run any common logic for all pointers, we can avoid to manually call `foreach()` by chaining the method `traverse()`:
```php
JsonParser::parse($source)
2023-01-16 17:00:34 +10:00
->pointer('/-/gender', $this->handleGender(...))
->pointer('/-/location/country', $this->handleCountry(...))
2023-01-14 13:13:10 +10:00
->traverse();
// no foreach needed
2023-01-14 10:42:59 +10:00
```
2023-01-14 17:53:44 +10:00
Otherwise if some common logic for all pointers is needed but we prefer methods chaining to manual loops, we can pass a callback to the `traverse()` method:
2023-01-14 13:13:10 +10:00
```php
JsonParser::parse($source)
->pointer('/-/gender', fn (string $gender, string $key) => new Gender($gender))
->pointer('/-/location/country', fn (string $country, string $key) => new Country($country))
2023-01-16 17:00:34 +10:00
->traverse(function (Gender|Country $value, string $key, JsonParser $parser) {
2023-01-14 13:13:10 +10:00
// 1st iteration: $key === 'gender', $value instanceof Gender
// 2nd iteration: $key === 'country', $value instanceof Country
// and so on for all the objects in the array...
});
// no foreach needed
```
> ⚠️ Please note the parameters order of the callbacks: the value is passed before the key.
2023-01-19 19:16:11 +10:00
2023-02-25 20:30:19 +10:00
### ⚙️ Decoders
2023-01-19 19:16:11 +10:00
By default JSON Parser uses the built-in PHP function `json_decode()` to decode one key and value at a time.
Normally it decodes values to associative arrays but, if we prefer to decode values to objects, we can set a custom decoder:
```php
use Cerbero\JsonParser\Decoders\JsonDecoder;
JsonParser::parse($source)->decoder(new JsonDecoder(decodesToArray: false));
```
JSON Parser also provides a convenient method to set the [simdjson](https://github.com/crazyxman/simdjson_php#simdjson_php) decoder:
```php
JsonParser::parse($source)->simdjson(); // decode JSON to associative arrays using simdjson
JsonParser::parse($source)->simdjson(decodesToArray: false); // decode JSON to objects using simdjson
```
2023-01-19 19:52:52 +10:00
[Simdjson is faster](https://github.com/crazyxman/simdjson_php/tree/master/benchmark#run-phpbench-benchmark) than `json_decode()` and can be installed via `pecl install simdjson` if your server satisfies the [requirements](https://github.com/crazyxman/simdjson_php#requirement).
2023-01-19 19:16:11 +10:00
If we need a decoder that is not supported by default, we can implement our custom one.
<details><summary><b>Click here to see how to implement a custom decoder.</b></summary>
To create a custom decoder, we need to implement the `Decoder` interface and implement 1 method:
```php
use Cerbero\JsonParser\Decoders\Decoder;
use Cerbero\JsonParser\Decoders\DecodedValue;
class CustomDecoder implements Decoder
{
public function decode(string $json): DecodedValue
{
// return an instance of DecodedValue both in case of success or failure
}
}
```
The method `decode()` defines the logic to decode the given JSON value and it needs to return an instance of `DecodedValue` both in case of success or failure.
To make custom decoder implementations even easier, JSON Parser provides an [abstract decoder](https://github.com/cerbero90/json-parser/tree/master/src/Decoders/AbstractDecoder.php) that hydrates `DecodedValue` for us so that we just need to define how a JSON value should be decoded:
```php
use Cerbero\JsonParser\Decoders\AbstractDecoder;
class CustomDecoder extends AbstractDecoder
{
protected function decodeJson(string $json): mixed
{
// decode the given JSON or throw an exception on failure
return json_decode($json, flags: JSON_THROW_ON_ERROR);
}
}
```
> ⚠️ Please make sure to throw an exception in `decodeJson()` if the decoding process fails.
2023-01-19 19:52:52 +10:00
Now that we have implemented our custom decoder, we can set it like this:
```php
JsonParser::parse($source)->decoder(new CustomDecoder());
```
2023-01-19 19:16:11 +10:00
To see some implementation examples, please refer to the [already existing decoders](https://github.com/cerbero90/json-parser/tree/master/src/Decoders).
2023-01-19 20:27:42 +10:00
If you find yourself implementing the same custom decoder in different projects, feel free to send a PR and we will consider to support your custom decoder by default. Thank you in advance for any contribution!
2023-01-19 19:16:11 +10:00
</details>
2023-02-01 22:25:13 +10:00
2023-02-25 20:30:19 +10:00
### 💢 Errors
Not all JSONs are valid, some may present syntax errors due to an incorrect structure (e.g. `[}`) or decoding errors when values can't be decoded properly (e.g. `[1a]`). JSON Parser allows us to intervene and define the logic to run when these issues occur:
```php
use Cerbero\JsonParser\Decoders\DecodedValue;
use Cerbero\JsonParser\Exceptions\SyntaxException;
$json = JsonParser::parse($source)
->onSyntaxError(fn (SyntaxException $e) => $this->handleSyntaxError($e))
->onDecodingError(fn (DecodedValue $decoded) => $this->handleDecodingError($decoded));
```
We can even replace invalid values with placeholders to avoid that the entire JSON parsing fails because of them:
```php
// instead of failing, replace invalid values with NULL
$json = JsonParser::parse($source)->patchDecodingError();
// instead of failing, replace invalid values with '<invalid>'
$json = JsonParser::parse($source)->patchDecodingError('<invalid>');
```
For more advanced decoding errors patching, we can pass a closure that has access to the `DecodedValue` instance:
```php
use Cerbero\JsonParser\Decoders\DecodedValue;
$patches = ['1a' => 1, '2b' => 2];
$json = JsonParser::parse($source)
->patchDecodingError(fn (DecodedValue $decoded) => $patches[$decoded->json] ?? null);
```
Any exception thrown by this package implements the `JsonParserException` interface, which makes it easy to handle all exceptions in one catch:
```php
use Cerbero\JsonParser\Exceptions\JsonParserException;
try {
JsonParser::parse($source)->traverse();
} catch (JsonParserException) {
// handle any exception thrown by JSON Parser
}
```
For reference, here is a comprehensive table of all the exceptions thrown by this package:
|`Cerbero\JsonParser\Exceptions\`|thrown when|
|---|---|
|`DecodingException`|a value in the JSON can't be decoded|
|`GuzzleRequiredException`|Guzzle is not installed and the JSON source is an endpoint|
|`InvalidPointerException`|a JSON pointer syntax is not valid|
|`SyntaxException`|the JSON structure is not valid|
|`UnsupportedSourceException`|a JSON source is not supported|
### ⏳ Progress
2023-02-01 22:25:13 +10:00
When processing large JSONs, we may need to know the parsing progress. JSON Parser offers convenient methods to access all the progress details:
```php
$json = new JsonParser($source);
$json->progress(); // <Cerbero\JsonParser\Progress>
$json->progress()->current(); // the already parsed bytes e.g. 86759341
$json->progress()->total(); // the total bytes to parse e.g. 182332642
$json->progress()->fraction(); // the completed fraction e.g. 0.47583
$json->progress()->percentage(); // the completed percentage e.g. 47.583
$json->progress()->format(); // the formatted progress e.g. 47.5%
```
The total size of a JSON is calculated differently depending on the [source](#sources). It is not always possible to determine how large a JSON is, in these cases only the current progress is known:
```php
$json->progress()->current(); // 86759341
$json->progress()->total(); // null
$json->progress()->fraction(); // null
$json->progress()->percentage(); // null
$json->progress()->format(); // null
```
2022-09-16 07:17:51 +10:00
## 📆 Change log
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## 🧪 Testing
``` bash
composer test
```
## 💞 Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE_OF_CONDUCT](CODE_OF_CONDUCT.md) for details.
## 🧯 Security
If you discover any security related issues, please email andrea.marco.sartori@gmail.com instead of using the issue tracker.
## 🏅 Credits
- [Andrea Marco Sartori][link-author]
- [All Contributors][link-contributors]
## ⚖️ License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
[ico-author]: https://img.shields.io/static/v1?label=author&message=cerbero90&color=50ABF1&logo=twitter&style=flat-square
2022-09-15 23:37:30 +02:00
[ico-php]: https://img.shields.io/packagist/php-v/cerbero/json-parser?color=%234F5B93&logo=php&style=flat-square
[ico-version]: https://img.shields.io/packagist/v/cerbero/json-parser.svg?label=version&style=flat-square
2022-12-21 21:56:58 +10:00
[ico-actions]: https://img.shields.io/github/actions/workflow/status/cerbero90/json-parser/workflows/build.yml?branch=master&style=flat-square&logo=github
2022-09-16 07:17:51 +10:00
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
2023-01-12 21:22:34 +10:00
[ico-psr7]: https://img.shields.io/static/v1?label=compliance&message=PSR-7&color=blue&style=flat-square
2022-09-16 07:17:51 +10:00
[ico-psr12]: https://img.shields.io/static/v1?label=compliance&message=PSR-12&color=blue&style=flat-square
2022-09-15 23:37:30 +02:00
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/cerbero90/json-parser.svg?style=flat-square&logo=scrutinizer
[ico-code-quality]: https://img.shields.io/scrutinizer/g/cerbero90/json-parser.svg?style=flat-square&logo=scrutinizer
2022-12-29 21:32:35 +10:00
[ico-phpstan]: https://img.shields.io/badge/level-max-success?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGb0lEQVR42u1Xe1BUZRS/y4Kg8oiR3FCCBUySESZBRCiaBnmEsOzeSzsg+KxYYO9dEEftNRqZjx40FRZkTpqmOz5S2LsXlEZBciatkQnHDG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ero/json-parser.svg?style=flat-square
2022-09-16 07:17:51 +10:00
[link-author]: https://twitter.com/cerbero90
[link-php]: https://www.php.net
2022-09-15 23:37:30 +02:00
[link-packagist]: https://packagist.org/packages/cerbero/json-parser
[link-actions]: https://github.com/cerbero90/json-parser/actions?query=workflow%3Abuild
2023-01-12 21:22:34 +10:00
[link-psr7]: https://www.php-fig.org/psr/psr-7/
2022-09-16 07:17:51 +10:00
[link-psr12]: https://www.php-fig.org/psr/psr-12/
2022-09-15 23:37:30 +02:00
[link-scrutinizer]: https://scrutinizer-ci.com/g/cerbero90/json-parser/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/cerbero90/json-parser
2022-12-29 21:32:35 +10:00
[link-phpstan]: https://phpstan.org/
2022-09-15 23:37:30 +02:00
[link-downloads]: https://packagist.org/packages/cerbero/json-parser
2022-09-16 07:17:51 +10:00
[link-contributors]: ../../contributors