BHoM / BHoM/File_Toolkit

JSON push always wrapped in array structure

Open
#193 0 comments 0 reactions 1 assignee Claimed by @michaelhoehn View on GitHub
type:feature
Dominant language
C#
Stars
0
Forks
7
PR merge metrics
No merged PRs in 30d

Description

#### 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.