Json front matter parse problem

My front matter is in json format.
when my json like this

{
  ...
  "title": "xxx\"xxx",
  ...
}

and error appeared

Error: unable to read frontmatter at filepos 658: EOF for xxx.md

if the value contains two double quotes like this

{
  ...
  "title": "xxx\"yyy\"xxx",
  ...
}

hugo parsed successfully

I wonder is there any difference between hugo json parser and JSON.parse, or is this a bug of the hugo json parser?

my hugo version is 0.20
on max ox

thanks

Hi, i just tested your string on version 0.25.1 and got no errors.
Try updating your installation and it should work fine.

Yes, this was a known bug (introduced by me in some version), but is fixed in the latest Hugo.