Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Include native json.encode/decode() functions to Lua API #3233

Closed
dacap opened this issue Mar 31, 2022 · 0 comments
Closed

Include native json.encode/decode() functions to Lua API #3233

dacap opened this issue Mar 31, 2022 · 0 comments
Assignees
Labels
feature Feature request, or something should be improved scripting Related to scripting API
Milestone

Comments

@dacap
Copy link
Member

dacap commented Mar 31, 2022

In this way we could avoid using json.lua. Maybe related to aseprite/api#10 (to use something like local json = require "json").

We can find a list of JSON modules here: http://lua-users.org/wiki/JsonModules

@dacap dacap added feature Feature request, or something should be improved scripting Related to scripting API labels Mar 31, 2022
@dacap dacap self-assigned this Jul 16, 2023
@dacap dacap added this to the v1.3-rc5 milestone Jul 16, 2023
dacap added a commit to dacap/aseprite that referenced this issue Jul 17, 2023
New json.decode(jsonText) and json.encode(luaTable) functions.

In this way we don't depend on third-party libraries to decode/encode
JSON text which is a quite common task (in tests and export scripts).
@dacap dacap closed this as completed in 86a50e2 Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request, or something should be improved scripting Related to scripting API
Projects
Archived in project
Development

No branches or pull requests

1 participant