JSON

FEATURE STATE: Gyroscops 0.1 [alpha]

JSON (JavaScript Object Notation) is a lightweight format for data exchange.

This package also supports NDJSON and JSON-LD.

What is it for?

This plugin aims at integrating a JSON, NDJSON and JSON-LD extractor and loader into the Pipeline stack.

Installation

In a Satellite project, add the JSON plugin this way:

composer require php-etl/json-plugin:'*'

Usage

Building an extractor

To build an extractor, you need to specify the path of your file with the file_path option.



json:
  extractor:
    file_path: 'input.json'

Building a loader

To build a loader, you need to specify the path to your file with the file_path option.



json:
  loader:
    file_path: 'output.json'