Skip to content

infinyon/labs-array-map-json-sm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/simple.json --raw

Test larger file and return formatted json (requires jq):

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

Cargo Compatible

Build & Test

cargo build
cargo build

About

Converts an array type JSON object, into individual records

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy