Skip to content

JSON object scripting interface, getting data copy is bottleneck with large JSONs #361

Open
@F3der1co

Description

@F3der1co

Reviewed guidelines

  • I have read and understand the suggestion guidelines

Checked for duplicate suggestions

  • I checked for existing similar suggestions

Summary

the JSON objects scripting interface doesn't allow us any direct access to the json data it holds, we have to get a copy of the data to access it. With large JSON files this creates a large performance bottleneck

Possible workarounds or alternatives

handle the JSON in scripting and expose getters and setter via event sheet return functions. (i.e. don't use the JSON objectType but recreate it)

Proposed solution

A way to directly access it (the Dictionaries scripting interface seems to allow that).
As a worse alternative: getter and setter scripting interface where you can pass in a path.

Why is this idea important?

For projects that use events and scripting together the JSON object is a great way to pass data between the two paradigms.

Additional remarks

It's super weird how the JSON, Dictionary and Array scripting interface follow completely different patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions