TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
How to encode/decode JSON?
Pages:
1
How to encode/decode JSON?
havana24
Posts: 508
November 06, 2015, 02:08:36 pm
Hi,
Could anyone tell me how to encode/decode JSON string via Stencyl?
Thanks in advance,
Alessandro
My Website:
www.havana24.net
letmethink
Posts: 2545
November 06, 2015, 02:25:38 pm
There are two things you can put in a code block which return the Json object, and the haxe object respectively:
Code:
[Select]
haxe.Json.stringify(value)
haxe.Json.parse('string')
~Letmethink
Pages:
1