CORE POS - IS4C
The CORE POS front end
Static Public Member Functions | List of all members
COREPOS\pos\lib\JsonLib Class Reference

Static Public Member Functions

static arrayToJson ($arr)
 
static array_to_json ($arr)
 
static encodeValueJson ($val)
 
static fixstring ($str)
 
static prettyJSON ($json)
 

Detailed Description

Functions for JSON support in PHP < 5.3

Member Function Documentation

static COREPOS\pos\lib\JsonLib::arrayToJson (   $arr)
static

Convert an array to a JSON string

Parameters
$arran array of values
Returns
A JSON string representing the array
static COREPOS\pos\lib\JsonLib::encodeValueJson (   $val)
static

Convert a variable to a JSON string

Parameters
$vala single variable
Returns
A JSON string representing the variable
static COREPOS\pos\lib\JsonLib::fixstring (   $str)
static

Remove newlines, carriage returns, and tabs from the string (some browser don't like these in JSON strings) a string

Returns
the modified string

The documentation for this class was generated from the following file: