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

Make JSON-in-KDL more minimalistic #293

Merged
merged 1 commit into from
Sep 2, 2022

Conversation

bgotink
Copy link
Member

@bgotink bgotink commented Sep 2, 2022

This PR applies the new JiK microsyntax proposed in #281. Instead of explicitly requiring (array) and (object) tags as proposed in the OP, the heuristic described in #281 (comment) is applied to detect the correct type while allowing the tags to be used in two cases where ambiguities arise.

In my comment #281 (comment) I also proposed ditching the requirement for a single top-level node, but that would limit JiK to encode only JSON arrays and objects while also making it impossible to encode a JSON stream, so I did not apply that here.

Closes #281

@tabatkins tabatkins self-requested a review September 2, 2022 20:53
@tabatkins tabatkins merged commit fb80016 into kdl-org:main Sep 2, 2022
@tabatkins
Copy link
Contributor

Very nice, I like what's going on here a lot better.

@LemmaEOF
Copy link

LemmaEOF commented Sep 2, 2022

🎉🎉🎉

@bgotink bgotink deleted the alternative-jik branch September 3, 2022 09:14
larsgw pushed a commit that referenced this pull request Oct 2, 2022
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.

Better json-in-kdl microsyntax
3 participants