Improved/optimized CDR engine reports (and patient reminders) and added a
[openemr.git] / library / jsonwrapper / jsonwrapper.php
blobb077dcdaa318ea99225a54bbc67327e71d16c4b3
1 <?php
2 /**
3 * jsonwrapper
5 * jsonwrapper implements the json_encode function if it is missing,
6 * and leaves it alone if it is already present. So it is nicely
7 * future-compatible.
9 * This script was downloaded on 9/27/2012 from
10 * http://www.boutell.com/scripts/jsonwrapper.html and has
11 * been released into the public domain. The following quote was
12 * taken from the above page:
13 * "jsonwrapper itself is hereby released into the public domain. However,
14 * it is a simple wrapper around M. Migurski's PEAR JSON library, which has
15 * its own free license."
17 * @package Services_JSON
18 * @link http://www.open-emr.org
21 # In PHP 5.2 or higher we don't need to bring this in
22 if (!function_exists('json_encode')) {
23 require_once 'jsonwrapper_inner.php';