- Home /
Post Reqest with dictionary
Is there way to put a IDictionary to WWWForm fields? Function "AddField" allows to set only string values. Is there way to put string like this:
{ "get": { "coin": "10"}, "give":{ "diamond": "1"} }
Thanks;
Comment
Best Answer
Answer by Kornikolia · Sep 26, 2015 at 05:55 PM
Ok, so have to put it like a data (Just example):
string params = " { \"get\": { \"coin\": \"10\"}, \"give\":{\"diamond\": \"1\"} }";
byte[] data = System.Text.Encoding.UTF8.GetBytes(params);
var www = new WWW (url, data, headers);
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Getting info using WWW & PHP 3 Answers