Schema not processing issue

#1005669
  • Resolved Nhat Minh Nguyen
    Rank Math free

    I can’t process the schema custom code and I’ve checked my schema code on the schema.org validator, and it doesn’t show any issues. When I press the button, nothing happens, and the console log shows this error “Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 3375 (line 100 column 1)”
    . Can you help me fix this error? Below is my schema code: https://notepad.pw/n6WgFFKAIAowjIfiiYC1

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I apologize for the issue you are facing with processing your schema custom code. The error message you are seeing, "Uncaught SyntaxError: Unexpected non-whitespace character after JSON at position 3375 (line 100 column 1)," indicates that there may be a formatting issue in your JSON-LD schema code.

    Here are a few steps you can take to troubleshoot this issue:

    1. Check for Trailing Commas: Ensure that there are no trailing commas in your JSON code, as they can cause syntax errors.
    2. Validate Your JSON: While you mentioned that the schema.org validator did not show any issues, it might be helpful to use another JSON validator like JSONLint to double-check your code.
    3. Review the Code: Look closely at the section around position 3375 in your code. This is where the error is being reported, and there may be an unexpected character or formatting issue.
    4. Simplify the Code: If possible, try simplifying your schema code to isolate the problem. Start with a basic structure and gradually add elements back until you identify what causes the error.

    If you continue to experience issues, please reply to this ticket with your schema code included in the message so that a human agent from our support team can assist you further.

    Thank you for raising this concern, and we look forward to helping you resolve it!

    Sources:
    Resolving Rank Math Schema Markup Related Issues

    Hello,

    It seems that you already marked this ticket as “Resolved”.

    Do you still need our assistance regarding this issue?

    Looking forward to helping you.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.