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

JSON push always wrapped in array structure #193

Open
michaelhoehn opened this issue Jul 8, 2024 · 0 comments · May be fixed by #194
Open

JSON push always wrapped in array structure #193

michaelhoehn opened this issue Jul 8, 2024 · 0 comments · May be fixed by #194
Assignees
Labels
type:feature New capability or enhancement

Comments

@michaelhoehn
Copy link

Description:

I'm working with @enarhi on a workflow that requires JSON output of single objects. Right now as we are still designing the fixed schema, we are working with custom objects. I noticed some unusual behavior when examining the files in a text editor, that the file adapter always wraps everything in an array [ and ] regardless of how many objects one is trying to push. This has created some headaches downstream where our read is not expecting an array structure of a single object.

This is also the case when pushing a single BHoM object. The output is always wrapped in an array.

@michaelhoehn michaelhoehn added the type:feature New capability or enhancement label Jul 8, 2024
@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 a pull request may close this issue.

1 participant