<?php $data = '{ "normal_size": [ { "id": 1, "image": "MICMIMC30651-6.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-6.jpg" }, { "id": 2, "image": "MICMIMC30651-61.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-61.jpg" }, { "id": 3, "image": "MICMIMC30651-62.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-62.jpg" }, { "id": 4, "image": "MICMIMC30651-63.jpg", "url": "http://localhost:8000/images/product/preview/MICMIMC30651-63.jpg" } ] }'; $output = json_encode(['image' => json_decode($data, true)]); echo $output;
You have javascript disabled. You will not be able to edit any code.