Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
questions/7003740/how-to-convert-namevaluecollection-to-json-string by dbc_MinLength
Environment version: 4.0.30319.42000
Json.NET version: Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed


Testing JSON: 
{
  "foo": [
    "baa"
  ],
  "multiple": [
    "first",
    "second,third,fourth"
  ],
  "null": null,
  "nullMultiple": null,
  "nullMixed": [
    "aaa"
  ]
}
Round-tripped result: 
{
  "foo": [
    "baa"
  ],
  "multiple": [
    "first",
    "second,third,fourth"
  ],
  "null": null,
  "nullMultiple": null,
  "nullMixed": [
    "aaa"
  ]
}

Testing JSON: 
{
  "foo": [
    "baa"
  ],
  "multiple": [
    "first",
    "second,third",
    "fourth"
  ],
  "nullMultiple": null,
  "nullMixed": [
    "aaa"
  ]
}
Round-tripped result: 
{
  "foo": [
    "baa"
  ],
  "multiple": [
    "first",
    "second,third",
    "fourth"
  ],
  "nullMultiple": null,
  "nullMixed": [
    "aaa"
  ]
}

Testing JSON: 
{}
Round-tripped result: 
{}

NameValueCollectionDictionaryWrapperJsonNetTester: All tests passed.

Done testing.
Cached Result
Last Run: 10:23:41 am
Compile: 0.282s
Execute: 0.159s
Memory: 717.44kb
CPU: 0.281s