This question already has an answer here:
- Safely turning a JSON string into an object 25 answers
note:
{"category_id":"1","name":"Notes","icon":"images\/note.png"},
quote:
{"category_id":"2","name":"Quotes","icon":"images\/quote.png"},
project:
{"category_id":"3","name":"Projects","icon":"images\/project.png"},
skill:
{"category_id":"4","name":"Skills","icon":"images\/skill.png"}
this is what is shown in my console. I have used json_decode
for my query, and concatenated with string, and I believed that's the caused of the problem.
so how to turn string data into json format?
</div>