Skip to content

Conversation

@michaelhoehn
Copy link
Contributor

@michaelhoehn michaelhoehn commented Jul 8, 2024

Only wraps outputs in square brackets if there's more than one object being pushed. Also eliminate the step to remove each trailing comma as this produces invalid json arrays.

NOTE: Depends on

Issues addressed by this PR

Closes #193

Test files

Test file

Changelog

Additional comments

@michaelhoehn michaelhoehn added the type:feature New capability or enhancement label Jul 8, 2024
@michaelhoehn michaelhoehn requested a review from alelom July 8, 2024 20:19
@michaelhoehn michaelhoehn self-assigned this Jul 8, 2024
@michaelhoehn michaelhoehn requested a review from ndiasbh July 30, 2025 13:40
Copy link

@ndiasbh ndiasbh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked with Michael Hoehn, small improvement to remove [] brackets before generating json object, unless part of json object list. Works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New capability or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON push always wrapped in array structure

3 participants