Q:

Decode special characters from json data in c#

I am getting data in json format from a url. Everything is working perfect, but one small issue is that in the data that I am getting there are some special characters, for example : 

Get 50% off on Pizzas between 11am &amp;ndash; 5pm.

&amp;ndash; here means that it is '-', but how can I decode it in c# so that it takes it as '-'.
I have tried using Html.decode method, it is working fine with URLs but not with data. 
I cannot replace &amp;ndash; with '-' everywhere because this is not a single case, there are other similar characters too.

A:

Works fine:
https://dotnetfiddle.net/H9rpLe
using System;

public class Program
{
    public static void Main()
    {
        string data = System.Net.WebUtility.HtmlDecode("Get 50% off on Pizzas between 11am &amp;ndash; 5pm"); 

        Console.WriteLine(data);
    }
}

Output: Get 50% off on Pizzas between 11am – 5pm

