Doc #60418 [Opn->Fbk]: json_encode() => Object and Array conversion behavior
| From: | frozenfire@php.net | Date: | Sat, 03 Dec 2011 03:51:36 +0000 |
| Subject: | Doc #60418 [Opn->Fbk]: json_encode() => Object and Array conversion behavior | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-7498@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60418&edit=1
ID: 60418
Updated by: frozenfire@php.net
Reported by: alain dot laporte12345 at gmail dot com
Summary: json_encode() => Object and Array conversion
behavior
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.8
-Assigned To:
+Assigned To: frozenfire
Block user comment: N
Private report: N
New Comment:
I'm unsure what behaviour exactly that you're indicating needs to be documented.
Could you please provide some example code, so that we do not need to guess at
what needs to be documented?
Previous Comments:
------------------------------------------------------------------------
[2011-11-30 13:24:03] alain dot laporte12345 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.json-encode#refsect1-function.json-
encode-notes
---
The behavior about conversion in object when an array have no consecutive keys is
not clear in the documentation.
We must use array_values() function to reinitialize keys, before to call
json_encode().
This behavior should be explicited in the "notes" section.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60418&edit=1