Answer the question
In order to leave comments, you need to log in
How to properly make json in c#?
now I'm making json code
var v = new
{
token = token,
method = "abc",
param = new string[1] { "data: [nokia]"},
locale = "ru"
};
json = jss.Serialize( v );
{"token":"test","method":"abc","param":["data: [nokia]"],"locale":"ru"}
{
"locale": "ru",
"token": "test",
"method": "abc",
"param": {"data": ["nokia"]}
}
Answer the question
In order to leave comments, you need to log in
var v = new
{
token = token,
method = "abc",
param = new Dictionary< String, List<String> >() { { "data", new List<String>() { "nokia" } } },
locale = "ru"
};
json = jss.Serialize( v );
on the
(
"data",
new List<String>() { "nokia" }
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question