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!
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.
Develop games in your browser. Powerful, performant & highly capable.
Ah great, I'll check that out, thanks!