19 lines
411 B
Python
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')
|