How to encode/decode JSON?

havana24

  • *
  • Posts: 508
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
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