|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jan 25 14:00:01 2026 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: -------------- []