Re: [PHP-DEV] [RFC][Draft] Add json_encode indent parameter

2021-06-15 Thread Jakub Zelenka
On Mon, Jun 7, 2021 at 11:53 AM Nikita Popov wrote: > On Thu, Jun 3, 2021 at 6:11 PM Timon de Groot > wrote: > > > Hi internals, > > > > I'd like to present my RFC for adding the indent parameter to the > > json_encode function: > >https://wiki.php.net/rfc/json_encode_indentation > > > > The

Re: [PHP-DEV] [RFC][Draft] Add json_encode indent parameter

2021-06-07 Thread Nikita Popov
On Thu, Jun 3, 2021 at 6:11 PM Timon de Groot wrote: > Hi internals, > > I'd like to present my RFC for adding the indent parameter to the > json_encode function: >https://wiki.php.net/rfc/json_encode_indentation > > The `string|int $indent = 4` parameter adds the ability to specify the > ind

[PHP-DEV] [RFC][Draft] Add json_encode indent parameter

2021-06-03 Thread Timon de Groot
Hi internals, I'd like to present my RFC for adding the indent parameter to the json_encode function:   https://wiki.php.net/rfc/json_encode_indentation The `string|int $indent = 4` parameter adds the ability to specify the indentation for the JSON encoder. Amount of spaces can be specified b