simple son parse too large message

I get the json string in my server. The json string too long. I use “JSONNode.Parse(json)” that function is loading too long. Use about 30 seconds.

public IEnumerator response() {
WWWForm form = new WWWForm();

form.AddField("data", json);

Dictionary<string,string> headers = new Dictionary<string, string>();
headers.Add("Content-Type", "application/json");

WWW w = new WWW(url, form);

yield return w;

if(w.error == null) {
if(JSONNode.Parse(w.text) != null) { // This load too long
if(JSONNode.Parse(w.text).contain("message")) { // This load too long
var message = Decrypt(JSONNode.Parse(w.text)["message"]); // This load too long

var data = JSONNode.Parse(message);// This load too long
}
}

Debug.Log(data);
else {
Debug.Log("Fail:" + w.error);
}
}

How can I performance?

How long is the data string…?

you are calling JSONNode.Parse() 4 times, parse once and use the results later.

.contain(“message”), try .indexOf(“message”)

or if you know the message string appears in same position always, just check that part/substring…

and check how fast would be other json plugins, including unitys own