Skip to content

Hjson #41

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

Open
ashifolfi opened this issue Dec 5, 2023 · 2 comments
Open

Hjson #41

ashifolfi opened this issue Dec 5, 2023 · 2 comments
Labels
feature 💭 SNAP would be extra good if...

Comments

@ashifolfi
Copy link

https://hjson.github.io/

I would like to see support for Hjson for SNAP. Hjson is a more human friendly They have various implementations which you could reference and it does share a lot of it's syntax with standard JSON so that might assist in implementing this.

Having a format like this that could be used to load in like translations (tModLoader uses Hjson for language files, as a real world example of it's usage), dialog, etc. would be nice, YAML isn't quite my thing and JSON is too strict for my liking.

There's a huge bunch of files you could use to test present in the official implementations. Here's a link to the ones present in the C++ implementation: https://github.com/hjson/hjson-cpp/tree/master/test/assets

A full implementation would be nice but I won't complain if it lacks a few things here and there. I'd be happy even if it only supported reading.

@JujuAdams JujuAdams added the feature 💭 SNAP would be extra good if... label Dec 6, 2023
@JujuAdams
Copy link
Owner

JujuAdams commented Dec 6, 2023

I agree that this would be a good addition; however, I have zero time to write a parser at the moment.

All is not lost: you may want to check out some JSON alternatives that I wrote because I ran into the same usage concerns that you're sharing. They're not quite as fancy as Hjson but they're close.

@JujuAdams JujuAdams changed the title [Format Request] Hjson Hjson Dec 6, 2023
@ashifolfi
Copy link
Author

I agree that this would be a good addition; however, I have zero time to write a parser at the moment.

All is not lost: you may want to check out some JSON alternatives that I wrote because I ran into the same usage concerns that you're sharing. They're not quite as fancy as Hjson but they're close.

👍 these do look like they could fill the specific niche I planned to use hjson for in the meantime! I myself am not familiar enough with GML right now to be comfortable writing a full parser but in the future if it's still up for grabs I might try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💭 SNAP would be extra good if...
Projects
None yet
Development

No branches or pull requests

2 participants