Hi there I’m getting error in json output string as Hugo is out putting escap characters with errors which are not necessary in json and also converting special characters into codes.
From screenshot You can see jsonlint isn’t validating it.
My actual text is “That’s some dummy text”.
[Detail] Actually I’m trying to output description of my post. I’m following this post. After getting everything done when I validated my ld+json using Google validator, google spotted an error which jsonlint also showing. I tried many things but no hope. Keep in mind that if edit text in jsonlint text box and write "description": "That's some dummy text." error goes away. That means error lies with escaping ' by \. Also note that escaping of quotation mark " is needed in every case.
Please any guide.
TY!
My personal preference when building JSON with Hugo: create your data structure in code (using dict and slice and such) then convert it to JSON using the jsonify function. This avoids the to quote or not quote dance.