LNXSDK/leenkx/blender/lnx/logicnode/map/LN_json_parse.py
2025-01-22 16:18:30 +01:00

19 lines
411 B
Python

from lnx.logicnode.lnx_nodes import *
class ParseJsonNode(LnxLogicTreeNode):
"""Parse a JSON String to Haxe object.
@input JSON: JSON string.
@output Value: Parsed value.
"""
bl_idname = 'LNParseJsonNode'
bl_label = 'Parse JSON'
lnx_version = 1
def init(self, context):
self.add_input('LnxStringSocket', 'JSON')
self.add_output('LnxDynamicSocket', 'Value')