Hey guys, currently we are working in connecting our server to an app built in C3.
So when I retrieve values sent by a chatbot, I obtain a value in the form of:
{"m_Int":"1"}
How can I type cast this string into a numerical value in C3?
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
The proper way is to parse it to JSON object, and then use int(JSON.Get("m_Int"))
See JSON template in C3, it shows how to load and work with JSON data.
Ah great, I'll check that out, thanks!