Skip to content

Weltmeister produces invalid level JSON #90

@Joncom

Description

@Joncom

Weltmeister will produce invalid level JSON if a double-quote is used anywhere in the settings of one of your entities.

For example: Say you have an Entity called EntityText, and it has a text property with a value of "Hello". These double-quotes will seem to work fine, but when you save, the JSON produced will be invalid. And when you refresh and try to reload the level, the level will not parse.

This is caused by a bug in JSONFormat:

var dataString = JSON.stringify(data);
if( wm.config.project.prettyPrint ) {
dataString = JSONFormat( dataString );
}

Bug details and a fix can be found here: phoboslab/json-format#2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions