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

JSON parsing? #22

Open
seiyria opened this issue Jan 27, 2016 · 4 comments
Open

JSON parsing? #22

seiyria opened this issue Jan 27, 2016 · 4 comments

Comments

@seiyria
Copy link

seiyria commented Jan 27, 2016

Will this support the JSON export of Tiled as well?

@marshallward
Copy link
Owner

I considered it at one point. At the moment the xml parsing is very explicit, and generalising the parsing could be a bit of work. But I agree that it ought to also read JSON. I'll try a more serious attempt to get it working. Thanks for raising the issue.

@marshallward
Copy link
Owner

One very easy (but lame) solution is to convert the JSON to XML and then parse it internally :).

@seiyria
Copy link
Author

seiyria commented Jan 27, 2016

No problem. I'm not sure how well that would work, and to be honest, I'm not sure how it would work if I did this anyway. I have custom fields in my maps and I don't know how well that'd transfer.

@marshallward
Copy link
Owner

I don't think custom fields would even be picked up... which I suppose highlights that this class is not much more than an XML wrapper with some convenient datatype casts :).

I will keep this issue open though, JSON should be handled somehow, even if it's just as a thin wrapper to XML.

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

2 participants