leekchan/phpy — pull request #2 by yoloseem (2013-11-27 05:39:56+00:00)
Title: Use simplejson if it is available.

[simplejson](http://simplejson.readthedocs.org/en/latest/) is a drop-in replacement for `json` library. It's API is compatible with `json` and may will give us a performance advantages if use it.

So I updated the code to use `simplejson` if it has installed.

---

Environment *with* `simplejson`:

```pycon
>>> import phpy
>>> phpy.php

>>> phpy.php.json

```

Environment *without* `simplejson`:

```pycon
>>> import phpy.php
>>> phpy.php.json

```