Skip to content

Apify act for extracting all arrays from input JSON and extending their elements with the core object.

License

Notifications You must be signed in to change notification settings

cermak-petr/act-flatten-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

act-flatten-json

This act extracts all arrays from input JSON and extends their elements with the core object.

Example input:

[
    {
        "name": "elem_1",
        "value": ["a", "b", "c"]
    },
    {
        "name": "elem_2",
        "value": ["d", "e"]
    }
]

Example output:

[
    { "name": "elem_1", "value": "a" },
    { "name": "elem_1", "value": "b" },
    { "name": "elem_1", "value": "c" },
    { "name": "elem_2", "value": "d" },
    { "name": "elem_2", "value": "e" }
]

About

Apify act for extracting all arrays from input JSON and extending their elements with the core object.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published