Get json data from string

Godot Version

godot4

Question

image
how would i convert this to a json path to get the val

Global.items.convert_from_string_to_key("rifle")

Is there a function like this? I could do this as an alternative.

nvrm i did

@export item = "rifle"

Global.items[item]