/** * @param $json * @return JSON */ function JSON($json) { $j = new JSON(null); $j->setUsingPhpValue($json); return $j; }