API JSONTools - chsxf/mfx GitHub Wiki
JSONTools Class
class JSONTools
Summary
Class containing utility functions for encoding data in JSON
Since 1.0
Methods
filterAndEncode
public static function filterAndEncode(mixed $var): string
Filter the specified value and encode it in JSON
Since 1.0
Parameters
Name | Type | Description |
---|---|---|
$var |
mixed |
Value to filter and encode |
Returns
string
A JSON-encoded string representing the specified value