SkriptLang / skript-reflect

Powerful reflection utilities for Skript.
MIT License
65 stars 20 forks source link

sk-reflect parsing as object for no reason #73

Open MinecraftNight4 opened 1 year ago

MinecraftNight4 commented 1 year ago

Describe the bug SkJson and Skript Reflect have problems detecting jsons inside an expression.

To reproduce

effect json-rem %string% on %json%:
    trigger:
        remove key (expr-1) of json object from expr-2

When I trying to create this effect, shows this error: "Expression 2 cannot have anything removed from it".

Expected behavior You are supposed to be able to delete elements inside the json, but it doesn't make much sense for this to happen.

Screenshots image

Server information Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases Skript's documentation can be found here: https://docs.skriptlang.org/ Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials Server Version: git-Purpur-2050 (MC: 1.20.1) Skript Version: 2.7.0-beta3 (skriptlang-github) Installed dependencies: None Installed Skript Addons: