У меня так много файлов JSON-инвила.
Это фрагмент недопустимого файла JSON.
[
{
'name':'Arden',
'born':'1973-12-22',
'orientation':'Heterosexual',
'purpose':'Friendship',
'tags':'cooking,swimming,adventure,drawing',
'country':'United Kingdom::Edinburgh',
'about':'I often read (and enjoy!) things that are completely opposed to everything I believe. I've enjoyed.'
},
{
'name':'Sisera',
'born':'1962-01-25',
'orientation':'Homosexual',
'purpose':'Flirt',
'tags':'reading,fishing,tennis,theater',
'country':'United States::Fairfield',
'about':'I'm OCD about shoes being placed side-by-side. I don't like them together by the door.'
}
]
Как заменить эту одинарную кавычку двойной кавычкой? Существуют ли онлайн-инструменты или какое-либо решение в PHP?
Я хочу следующее:
[
{
"name":"Arden",
"born":"1973-12-22",
"orientation":"Heterosexual",
"purpose":"Friendship",
"tags":"cooking,swimming,adventure,drawing",
"country":"United Kingdom::Edinburgh",
"about":"I often read (and enjoy!) things that are completely opposed to everything I believe. I\'ve enjoyed."
},
{
"name":"Sisera",
"born":"1962-01-25",
"orientation":"Homosexual",
"purpose":"Flirt",
"tags":"reading,fishing,tennis,theater",
"country":"United States::Fairfield",
"about":"I\'m OCD about shoes being placed side-by-side. I don\'t like them together by the door."
}
]
Заранее спасибо.