I am facing this issue while perse a json sting from claude prompt for blog post outline

I am facing this issue while perse a json sting from claude prompt for blog post outline

Hello @dreammv33,
Welcome to the community.

Please add some more context then I can help you.

  • What is your input?
  • What is instruction(process)given.
  • What is the expected output you need?
  • Does the output format(JSON) is fixed or it’s different on each request?
  • If the output format is fixed then you need to give specific instructions in the prompt to give the desired formatted output.

I think this helps.
:+1:

{
“SEO title”: “SEO title here”,
“meta description”: “meta description here”,
“introduction”: “introduction here”,
“main body”: [
{
“heading”: “## Main heading 1”,
“points”: [
“- point 1”,
“- Point 2”,
“- Point 3”
]
},
{
“heading”: “## Main heading 2”,
“points”: [
“- point 1”,
“- Point 2”,
“- Point 3”
]
}
],
“conclusion”: “conclusion here”
}

This was the input… Now showing source file is not found.

This is not valid JSON

Error: Parse error on line 1:
{“SEO title”: “SEO ti
-^
Expecting 'STRING', '}', got 'undefined'

Google for JSON validator

Ps.: when you are not sure, use Ai to fix it