Skip to content

Conversation

@chaitanyalal18
Copy link
Contributor

This action takes an array of JSON objects as input and returns a single merged JSON object.
If multiple objects contain the same key, their numeric values are added together. If a key exists only in one object, it is carried over as is.

This is useful for combining metrics, inventory counts, or numeric summaries from multiple sources into a single aggregated object.

Example
Input-
[
{ "laptop": 2, "keyboard": 3 },
{ "laptop": 1, "mouse": 4 },
{ "mouse": 2, "keyboard": 1 }
]
Output-
{ "laptop": 3, "keyboard": 4, "mouse": 6 }

@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@rohi-v rohi-v assigned rohi-v and unassigned rohi-v Oct 23, 2025
@rohi-v
Copy link
Contributor

rohi-v commented Oct 23, 2025

Looks Good
Thank you for contribution

@rohi-v rohi-v merged commit 4657135 into ServiceNowDevProgram:main Oct 23, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants