Is it possible for the PHP json_encode
function do not convert empty string values to null?
UPDATE
I can not replicate this behaviour in clear conditions, and looks like it's already a default for this function.
Is it possible for the PHP json_encode
function do not convert empty string values to null?
UPDATE
I can not replicate this behaviour in clear conditions, and looks like it's already a default for this function.
This is already the default behavior.
json_encode(['test' => '']);
generates:
{"test":""}