0

Im trying to PARSE this JSON and getting this error Expecting "EOF" got undefined error, not sure not sure what I am missing in line 14.

Im trying to PARSE this JSON and getting this error Expecting "EOF" got undefined error, not sure what I am missing in line 14.

example:

{
    "plotOptions": {
        "series": {
            "dataLabels": {
                "enabled": true
            }
        },
        "column": {
            "stacking": "percent",
            "dataLabels": {
                "format": "{point.percentage:.1f}%"
            },
            "tooltip": {
                "pointFormat": "<span style="\ & quot;color: {
                    point.color
                }\ & quot;
                ">●</span> {series.name}: <b>{point.y} ({point.percentage:.1f}%)</b><br>"
            }
        },
        "bar": {}
    },
    "yAxis": {
        "stackLabels": {
            "enabled": true
        },
        "title": {}
    },
    "xAxis": {
        "title": {}
    },
    "categorySort": "asc"
}

1 Answer 1

1

This issue is with string quoting for this attribute pointFormat: I removed the back-slash, connected ampsand with "quot" and used single quote inside the double quote, then it becomes a valid JSON, see screenshot below

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.