Convert ~~ separated string to json in .net core
Hi,
I have string input in the form
Field1~~Field2~~Field3~~Field4
Value1~~Value2~~Value3~~Value4
And expecting json in the format
["Field1":"Value1","Field2":"Value2","Field3":"Value3","Field4":"Value4"]
Is there any way possible to achieve this in .net core ...
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Gajendra JangidRank #157 · 14.9K reputationPosted Jun 4, 2019, 2:12 AM EDT
Jaish MathewsRank #225 · 11K reputationPosted Jun 4, 2019, 7:06 AM EDT
Sid KC192 reputationPosted Jun 5, 2019, 8:29 PM EDT