Skip to content

Process JSON Command - Refactor JSON path handling and root support - #3455

Merged
Ghabry merged 3 commits into
EasyRPG:masterfrom
EasyRPG-NewFeatures:ProcessJSON-Fixes
Oct 12, 2025
Merged

Process JSON Command - Refactor JSON path handling and root support#3455
Ghabry merged 3 commits into
EasyRPG:masterfrom
EasyRPG-NewFeatures:ProcessJSON-Fixes

Conversation

@jetrotal

Copy link
Copy Markdown
Contributor

@Mimigris found some missing usecases for Process JSON command. One of them related to missing access to the root of a JSON, for things like GetKeys("/")

This PR Introduces a helper to handle JSON path resolution, including root path ('/'), and refactors all relevant functions to use it. Improves consistency, reduces code duplication, and adds explicit handling for root object operations in GetValue, SetValue, RemoveValue, Contains, and related methods.

@Mimigris found some missing usecases for Process JSON command. One of them related to missing access to the root of a JSON, for things like `GetKeys("/")`

This PR Introduces a helper to handle JSON path resolution, including root path ('/'), and refactors all relevant functions to use it. Improves consistency, reduces code duplication, and adds explicit handling for root object operations in GetValue, SetValue, RemoveValue, Contains, and related methods.
@jetrotal
jetrotal force-pushed the ProcessJSON-Fixes branch from b5325d5 to 94e2a98 Compare July 26, 2025 15:53
@Ghabry

Ghabry commented Jul 29, 2025

Copy link
Copy Markdown
Member

Thanks for adding this, also noticed this "/" limitation (and I really wonder why "/" is not a valid JSON Path -_-).

@Ghabry Ghabry added this to the 0.8.2 milestone Jul 29, 2025
@Ghabry Ghabry added the EasyRPG New functionality exclusive to EasyRPG Player label Jul 29, 2025
@Ghabry
Ghabry merged commit 31de2a7 into EasyRPG:master Oct 12, 2025
17 checks passed
@jetrotal
jetrotal deleted the ProcessJSON-Fixes branch October 12, 2025 21:28
sevenc-nanashi pushed a commit to sevenc-nanashi/easyrpg-player that referenced this pull request May 31, 2026
…Fixes

Process JSON Command - Refactor JSON path handling and root support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

EasyRPG New functionality exclusive to EasyRPG Player

Development

Successfully merging this pull request may close these issues.

2 participants