Json
class Json implements IteratorAggregate, Countable
Methods
No description
Implement IteratorAggregate interface
Counting attributes data
Convert attributes to array
Set up json option
JSON Output with header
Get attributes
Get JSON error
Get value from attributes based on magic property
Call Json scope for optional json process as magic method
Main output for encoding process
Details
at line 79
static
getInstance()
No description
at line 92
static Json
parse(string $jsonString, bool $error = false)
Register json string
at line 105
static Json
stringify(mix $data)
Register data to prepare json_encode process
at line 119
ArrayIterator
getIterator()
Implement IteratorAggregate interface
Use for iterate attributes at foreach()
at line 130
int
count()
Counting attributes data
at line 160
array
toArray()
Convert attributes to array
at line 180
void
setOption($option)
Set up json option
at line 190
Json
withHeader()
JSON Output with header
at line 201
mixed
getAttributes()
Get attributes
at line 211
static string
getError()
Get JSON error
at line 222
mixed
__get($key)
Get value from attributes based on magic property
at line 235
void
__call($method, $params)
Call Json scope for optional json process as magic method
at line 247
value
__toString()
Main output for encoding process