Question:
I need to send some data as JSON to a server, and using JSONUtility didn’t really work as well as I thought, is there a simple and more readable way to write this?Answer:
This can be solved by using theJsonUtility
class provided by UnityEngine
namespace.First, Create a data class to extract as JSON.
JsonUtility.ToJson()
.When there is a value in urlInput.text
Hope your problem is solved ๐
If you have better answer, please add a comment about this, thank you!