I get a PHP array from a web page (as a string). It looks like this:
Array
(
[k1] => Array
(
[a] => Array
(
[id] => 1
[age] => 60
)
[b] => Array
(
[id] => 2
[age] => 30
)
)
[k2] => v2
)
I want to parse it in python. Does anyone have an idea how to do this?
Thanks Rivka
Edit: This is really not json, as some people commented. Thanks for the comments, and I updated the question.
source
share