I'm having trouble reading a JSON that I get:
{"data":{"charges":{"data":{"charges":[{"code":10006756,"dueDate":"13/09/2014","link":"https://www.teste.com.br"}]},"success":true}
I need to assign these values to my variables, this array will always have 1 record, it's the rule.
How to get all variables of it ( code
, dueData
, link
and success
) and assign these values to simple variables? That is in my code I will have:
$code = valordoJSON;
$dueData = valordoJSON;
$link = valordoJSON;
$sucesso = valordoJSON;