how can I convert following invalid json string to valid in php I need solution in php. Please give me a way to convert this input json to output json
input:
{
account : 'rogersrmisports',
brand : 'Sportsnet',
tags : '',
cmsid : '2912963',
wordCount : '3197',
publishDate : 'July 11, 2016',
products : '',
pages : 'sportsnet : hockey : nhl : david amber q&a, part i: \'my job is not to be ron jr.\'',
section : 'sportsnet : hockey',
subSection : 'sportsnet : hockey : nhl',
contentName : 'david amber q&a, part i: \'my job is not to be ron jr.\'',
complete90percent : false, // default: false
}
output:
{
"account" : "rogersrmisports",
"brand" : "Sportsnet",
"tags" : "",
"cmsid" : "2912963",
"wordCount" : "3197",
"publishDate" : "July 11, 2016",
"products" : "",
"pages" : "sportsnet : hockey : nhl : david amber q&a, part i: 'my job is not to be ron jr.'",
"section" : "sportsnet : hockey",
"subSection" : "sportsnet : hockey : nhl",
"contentName" : "david amber q&a, part i: 'my job is not to be ron jr.'",
"complete90percent" : "false, // default: false"
}