probably a duplicate question and i think i know the reson why it happens but cant solve it.
I got a json string i pass to php. In console.log(JSON.stringify(obj)); i get the right string with normal quots -> “” but when i do an error_log() on php side i get this:
{"obj":{"1063":{"id":{"article_id":"1063","article_no_internal":"400086","article_name_internal":"Hotelbox Kurzurlaub"},"stk":"100"}}}
Its full of " and my var_dump(json_decode($part_list_array, true)); returns a NULL
Any idea why this happens?
Looks like your characters are being converted to HTML entities. Try this: