Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.82k stars 821 forks source link

Json Factory: Added support for root json array #1100

Closed Adolio closed 1 year ago

Adolio commented 1 year ago

Hi Daniel,

I just noticed that the Json Factory doesn't support root JSON array.

According to the format definition root arrays are valid. So after this changes embed files starting with [ will be considered as JSON and will be parsed accordingly.

I tested it and everything works as expected.

See you, Aurélien

PrimaryFeather commented 1 year ago

You're totally right, Aurélien, nothing speaks against supporting arrays here, as well. Thanks for creating the pull request!! 😄👏

Adolio commented 1 year ago

Thanks Daniel for the merge! ☺️