Я пытаюсь сохранить объект в базе данных MySQL через PHP и отправляю данные в PHP с Android.
Структура данных, отправляемых из приложения Android,
{
"nodes":[
{
"content":[""],
"contentStyles":[],
"textSettings":{
"textColor":"#000000"
},
"type":"INPUT"
},
{
"content":[
"\u003cp dir\u003d\"ltr\"\u003eYou can start typing here by deleting the this dummy data\u003c/p\u003e\n"
],
"contentStyles":[],
"textSettings":{
"textColor":"#000000"
},
"type":"INPUT"
}
]
}
Но когда я сохраняю данные из php, он переходит в следующий формат
{"nodes":
[
{ "content":[""],
"contentStyles":[],
"textSettings": {"textColor":"#000000"},
"type":"INPUT"
},
{ "content": ["u003cp diru003d"ltr"u003eYou can start typing here
by deleting the this dummy data.003c/pu003e
"],
"contentStyles":[],
"textSettings":{"textColor":"#000000"},
"type":"INPUT"
}
]
}
Я хочу сохранить данные в том же формате, не меняя ничего из структуры. Я пробовал несколько способов, но не могу решить проблему.