|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-13 14:56 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Description: ------------ By default json object starts with "{" and ends with "}" Error occurs when user attempt encode empty array. Reproduce code: --------------- echo json_encode(array()); Expected result: ---------------- {} Actual result: -------------- []