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

Writing operator switches to object mode. Trim spaces around equal op #134

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

nickbabcock
Copy link
Contributor

If someone is using the writer but doesn't know what the upcoming container type is (array, object, mixed). There is no way to switch without peeking. This allows the writer to always start with an array and then if an operator is encountered (like an equals operator), the container will be switched to object mode

And if equals is being written, there shouldn't be any spaces around it.

If someone is using the writer but doesn't know what the upcoming
container type is (array, object, mixed). There is no way to switch
without peeking. This allows the writer to always start with an array
and then if an operator is encountered (like an equals operator), the
container will be switched to object mode

And if equals is being written, there shouldn't be any spaces around it.
@nickbabcock nickbabcock merged commit bfb8530 into master Nov 20, 2023
7 checks passed
@nickbabcock nickbabcock deleted the operator branch November 20, 2023 13:06
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

Successfully merging this pull request may close these issues.

1 participant