forked from LeenkxTeam/LNXSDK
18 lines
430 B
Python
18 lines
430 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class JsonStringifyNode(LnxLogicTreeNode):
|
|
"""Convert a Haxe object to JSON String.
|
|
|
|
@input Value: Value to convert.
|
|
|
|
@output String: JSON String.
|
|
"""
|
|
|
|
bl_idname = 'LNJsonStringifyNode'
|
|
bl_label = 'JSON Stringify'
|
|
lnx_version = 1
|
|
|
|
def init(self, context):
|
|
self.add_input('LnxDynamicSocket', 'Value')
|
|
self.add_output('LnxStringSocket', 'JSON') |