Syntax issue - Parsing error: Missing ',' or '}'

Hi All,

I’m implementing Job Schema for a client, and the final hurdle seems to be an issue with Rich Tets Results reporting a Syntax issue;

The HTML all looks ok to me, anyone have any thoughts?

- Parsing error: Missing ‘,’ or ‘}’

Below is the Schema markup; everything else is printed as it should in the Rich Test Results;

<script type=“application/ld+json”>
{
@context” : “https://schema.org/”,
@type” : “JobPosting”,
“title” : “{{dynamic_page_hubdb_row.hs_name}}”,
“description” : “{{dynamic_page_hubdb_row.job_description}}”,
“identifier”: {
@type”: “PropertyValue”,
“name”: “xxxx”,
“value”: “{{dynamic_page_hubdb_row.job_ref}}”
},
“datePosted” : “2017-01-18”,
“validThrough” : “2024-01-18T00:00”,
“employmentType” : “{{dynamic_page_hubdb_row.job_type.name}}”,
“hiringOrganization” : {
@type” : “Organization”,
“name” : “confidential”,
“sameAs” : “https://www.xxxx”,
“logo” : “https://xxxx
},
“jobLocation”: {
@type”: “Place”,
“address”: {
@type”: “PostalAddress”,
“addressLocality”: “{{dynamic_page_hubdb_row.select_location.name}}”,
“addressRegion”: “{{dynamic_page_hubdb_row.select_region.name}}”,
“addressCountry”: “UK”
}
},
“baseSalary”: {
@type”: “MonetaryAmount”,
“currency”: “GBP”,
“value”: {
@type”: “QuantitativeValue”,
“minValue”: “{{dynamic_page_hubdb_row.salary_from}}”,
“maxValue”: “{{dynamic_page_hubdb_row.salary_to}}”,
“unitText”: “YEAR”
}
}
}
</script>

Hi @SWilson5 :waving_hand: Thanks for your question, and thank you for including those details. Hey, @BarryGrennan @Jnix284 @albertsg, can you lend a hand here? Or do you have suggestions on what other details @SWilson5 can provide that are helpful in troubleshooting in your opinion?

Best,

Jaycee

My guess would be that it’s something in the html of the description that’s messing you up.

Try replacing

{{dynamic_page_hubdb_row.job_description}}

with

{{dynamic_page_hubdb_row.job_description|striptags}}

Edit: To be more specific about it I suspect it’s the double quotation marks within your html tags that’s breaking your json e.g. in your h1 when you hit that style=", that double quotation mark starting your styling is being read by json as the end of your description.


Barry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

recently updated my blogs and added 2 new blog posts,

Social Media Content Calendar and Social Media Management Tools , blog publishing is done perfectly and content is long form seo optimized.

but when i tried to submit these links to google search console, its showing same error on both blog posts. this is the error i’m facing but when i switch tabs to Screenshot mode and it displays me the front layout this should be of mine website, right? my website link is https://iabidalli.com

here is what i’m seeing, someone else content link with errors and chinese code.

actual page should look like this

so checked this in google’s rich result test tool here https://search.google.com/test/rich-results/result/r%2Funknown-type?id=R2PPn9cHnQS9dIKOFdr0rA and its showing like this and i’m not able to fix this issue, can someone please help me fix this error please.