Passing single quote in DotNet Highcharts data name as part of string

Mar 10, 2013 at 2:12 PM
I have problem passing a single quote inside a quoted string to the object names, Using the DotNet Highcharts library.

For an example:
            {
                Type = ChartTypes.Pie,
                Name = "Test",
                Data = new Data(new object[]
                                           {
                                            new object[] { "D'Jango", 1 },
                                           })

            });
I've been trying:
  1. To \' escape : new object[] { "D\'Jango", 1 }
  2. To use & rsquo; instead of a single quote.
The chart won't render at all if a single quote have passed to one of the object names.
Mar 11, 2013 at 7:53 AM
Help?
Mar 14, 2013 at 3:16 PM
Not possible to pass a single quote in string??
realy?
May 7, 2013 at 2:55 AM
I have the same issue. Did any one find a solution yet?
Coordinator
May 26, 2013 at 10:38 PM
Edited May 26, 2013 at 10:51 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.

The JsonSerializer escapes once the backslash. So just you need to add one more:
new object[] { "D\\'Jango", 1 }