I've been trying to figure this out for a while now, but I just can't seem to understand why my JSON keeps showing as invalid...
When I run it through JSONLint, I get the following error
Error: Parse error on line 107:
...pair?", "answer": "Yes, as long as the
----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
This is the specific part of the JSON that's causing issues
{
"tags": "already transferred",
"question": "Can we transfer customers who have already been transferred previously? what is the dispo? warm transfer or already contacted?",
"answer": "Yes, mark as already contacted."
},
{
"tags": "secured debt",
"question": "If customer only has secured debts, can we still offer credit repair?",
"answer": "Yes, as long as they have at least $100 in secured/unsecured debt.
"},
{
"tags": "state",
"question": "Is the program state sensitive?",
"answer": "Yes, each partner has particular states that they service. The script engine will only offer services when the state is valid for partner who has that service."
},
The issue seems to be with the text 'Yes, as long'
This JSON is generated dynamically using ColdFusion.
<cfscript>faqCounter=1;</cfscript>
<CFLOOP query="getFAQs">
<cfoutput>
{"tags":"#getFAQs.tags#","question":"#getFAQs.question#","answer":"#getFAQs.answer#"}<cfif faqCounter<getFAQCount.getFAQPertinentCount>,</cfif>
</cfoutput>
<cfscript>faqCounter++;</cfscript>
</CFLOOP>