Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 739 Bytes

File metadata and controls

50 lines (31 loc) · 739 Bytes

Array-Map JSON Smartmodule

SmartModule that transforms a JSON aggregate containing arrays into individual JSON Records. This SmartModule is array_map type, where each record-in generates a one or more records-out.

Expected Input

Array in JSON representation:

[{"one": 1}, {"two": 2}]

Expected Ouptput

Each array element is converted to individual record:

{"one":1}
{"two":2}

SMDK Compatible

This project works with smdk command tools:

smdk build

Test small file:

smdk test --file ./test-data/input.json --raw

Cargo Compatible

Build & Test

cargo build
cargo test