class JsonEncode implements EncoderInterface
Encodes JSON data.
__construct($bitmask) | ||
int | getLastError() Returns the last encoding error (if any). | |
scalar | encode(mixed $data, string $format, array $context = array()) Encodes PHP data to a JSON string. | |
bool | supportsEncoding(string $format) Checks whether the serializer can encode to given format. |
Returns the last encoding error (if any).
Encodes PHP data to a JSON string.
{@inheritdoc}
Checks whether the serializer can encode to given format.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Serializer/Encoder/JsonEncode.html