I have JSON bad formatted JSON file, I want to fix this with PHP code.
here is my JSON:
x: 322.5, y: 174, colors: #000000, removable: true, draggable: true, rotatable: true, resizable: true, scale: 1, degree: 0, price: 0, boundingBox: false, textSize: 22, source: , originX: 322.5, originY: 174, currentColor: #000000, text: დედა, font: Arial
Fixed output:
"x": 322.5, "y": 174, "colors": "#000000", "removable": true, "draggable": true, "rotatable": true, "resizable": true, "scale": 1, "degree": 0, "price": 0, "boundingBox": false, "textSize": 22, "source": , "originX": 322.5, "originY": 174, "currentColor": "#000000", "text": "დედა", "font": "Arial"
How to correct my JSON? PHP can handle it?