In .Net, I want to generate a json object as follows:
{"1":true}
Can I do so using JavaScriptSeri开发者_开发百科alizer
?
Can I do it any other way?
ExpandoObject may solve what you want.
Allows to build object with dynamic properties but compatible only with .net 4
精彩评论