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

Does JsonCloser work for nested objects? #16

Open
sushengloong opened this issue Jan 13, 2024 · 4 comments
Open

Does JsonCloser work for nested objects? #16

sushengloong opened this issue Jan 13, 2024 · 4 comments

Comments

@sushengloong
Copy link

I have an entity/schema that has nested objects. Even with StreamObjectKeyValueTokens, my streaming behaves more like StreamObjectKeyValue whereby one field only becomes available when its value is complete. I suspect it's because JsonCloser doesn't work with a entity/schema with nested objects.

@st3w4r
Copy link
Owner

st3w4r commented Jan 13, 2024

Yeah, good observation, nested JSON objects are currently not supported. There are actually different ways to implement this, and it would be useful to know more about your use case. Could you share more details about what you're looking for with the nested JSON object? Also, how do you define an 'entity' in this context?

@olup
Copy link

olup commented May 7, 2024

Could entity declaration use json path? Does it mentally work with nested entity in an array?

@st3w4r
Copy link
Owner

st3w4r commented May 12, 2024

Json path it is something we can explore. Yeah it could help specifying which array we want to extract and stream.

@Keanottesen
Copy link

Following

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

No branches or pull requests

4 participants