Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create JSON arrays only where more than one object is detected #194

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

michaelhoehn
Copy link

@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
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
1 participant