views:

55

answers:

3

Is there a simple alternative to using json_decode function in php versions prior to 5.2? I am feeling lazy at this time of night and can't be bothered to update php yet. Cheers.

+3  A: 

The comments for json_decode include a few possible solutions.

Here's one that decodes by itself, and here's one that uses a PEAR module.

Matchu
+3  A: 

You can find six alternatives at json.org

nxt