Using PHP, how I can I parse a JSON object with an array given in square brackets and delimited by a pipe “|”?
For example, I need to access the second component of the “Data”, in this case “English”.
Assume the lengths are variable, so you cannot slice by character positions.
{"Username":"5018",
"Data":["53094185|English|USA|2012-07-24 12:49:00|AZ|"],
"Location":"New York"}
Its simple: