String replace with substring
<p>I have a string as below.</p>

<pre><code>{{"sId":"HSFJFKJ.dsfhshd","min":"AKK213AD23456","info":"text"},
{"sId":"HSFJFKJ.dsd7shd","min":["BKK213ACD23456","BKK213AB1CD23456"],"info":"text"},
{"sId":"HSFJFKJ.dsdf7shd","min":"BKK213AB1CD23456","info":"text"},
{"sId":"HSFJFKJ.dsdd7shd","min":"CKK213AB1CD23456","info":"text"}}
</code></pre>

<p>If you see the "min" value is sometimes single and sometimes repeating.
Hence I want to remove this repetition of "min" value. It has to be a single value.</p>

<p>So i want to parse the full string(very long string), and find if "min" has multiple values. If it has multiple value, then replace it with single value.</p>

<p><strong>Example:</strong></p>

<p>Replace:</p>

<pre><code>"min":["BKK213AB1CD23456","BKK213AB1CD23456"] 
</code></pre>

<p>With:</p>

<pre><code>"min":"BKK213AB1CD23456"
</code></pre>

<p>Looking for any simple solution for this in C#.</p>