What is the correct way to outprint this type of .json file using php?
I have a remote folder that receives images via a app then it is suppose to displays those same images from a .json file, in short the gallery pulls the image link from a json file. The function to update the json file is complete however the correct process to write the json file using php is beyond my knowledge and I need help. My working json file looks like this
{
"status": true,
"data": {
"products": [
{
"id": "4342",
"name": "Pattern - Fractal Wallpaper",
"image_url": "http_my_server"
},
{
"id": "431",
"name": "Mickey Mouse",
"image_url": "http_my_server"
}
]
}
my php outprint looks like this and it doesn't work
[{"image_url":"IMG_20160919_112859.jpg"}][{"image_url":"IMG_20160919_112859.jpg"},{"image_url":"IMG_20160919_102513.jpg"}][{"image_url":"IMG_20160919_112859.jpg"}