Skip to content

Conversation

JochenHeizmann
Copy link
Contributor

@JochenHeizmann JochenHeizmann commented Jun 19, 2025

Description

When loading and parsing JSON Format, objectGroup layers wheren't parsed correctly, which resulted in empty entry.

The main problem was that in JSON Format it is called "objects" instead of "object" like in XML. Here is a snippet of a JSON file exported with Tiled 1.8.2:

         "draworder":"topdown",
         "id":8,
         "name":"obj",
         "objects":[
                {
                 "height":8,
                 "id":1,
                 "name":"start",
                 "rotation":0,
                 "type":"",
                 "visible":true,
                 "width":8,
                 "x":64,
                 "y":160
                }, 
                {
                 "height":8,
                 "id":2,
                 "name":"gem",
                 "rotation":0,
                 "type":"",
                 "visible":true,
                 "width":8,
                 "x":96,
                 "y":40
                }, 

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

JochenHeizmann and others added 4 commits June 11, 2025 16:50
- When loading in JSON from object layers didn't get parsed and where
empty
- Default values added for ellipse and point properties (as they might
not be present in JSON)
@spydon spydon merged commit 305418d into flame-engine:main Jun 19, 2025
5 checks passed
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.

2 participants