Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

JSON : all user-defined properties are exported as String #379

Closed
melonjs opened this issue Mar 6, 2013 · 2 comments
Closed

JSON : all user-defined properties are exported as String #379

melonjs opened this issue Mar 6, 2013 · 2 comments

Comments

@melonjs
Copy link

melonjs commented Mar 6, 2013

for example :

"properties":
{
   "image":"spinning_coin_gold",
   "spritewidth":"32"
},

this is not consistent with the regular XML export, where spritewidth (here in the example) would have directly the Integer value 32 and not "32".

@bjorn
Copy link
Member

bjorn commented Mar 6, 2013

Actually, this is consistent with the regular XML export, since in XML all data are strings.

Also, all user-defined properties are in fact strings. There is no support for different types of properties at the moment (that's issue #14).

@bjorn bjorn closed this as completed Mar 6, 2013
@bjorn
Copy link
Member

bjorn commented Mar 16, 2016

With Tiled 0.16, there is support for basic property types, and numbers and booleans will no longer be quoted as strings in JSON files.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant