I\'ve have this list of products in JSON that needs to be decoded:
\"[{\"productId\":\"epIJp9\",\"name\":\"Product A\",\"amount\":\"5\",\"identifier\":\"242\
To convert json to an array use
json_decode($json, true);