CORE POS - IS4C
The CORE POS front end
Static Public Member Functions | List of all members
JsonLib Class Reference
Inheritance diagram for JsonLib:
LibraryClass

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 JsonLib::arrayToJson (   $arr)
static

Convert an array to a JSON string

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

Convert a variable to a JSON string

Parameters
$vala single variable
Returns
A JSON string representing the variable
static 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: