[RFC][Draft] Add json_encode indent parameter

From: Date: Thu, 03 Jun 2021 16:10:46 +0000
Subject: [RFC][Draft] Add json_encode indent parameter
Groups: php.internals 
Request: Send a blank email to internals+get-114717@lists.php.net to get a copy of this message
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 by a number and a string can be
specified to set a custom indentation like \t or whatever.

As this is my first RFC (and contribution) for PHP, I'm all kind of new to the process, standards, etc.
Please let me know if I could do something better.

Looking forward to feedback/input on the RFC.

--

Kind regards,

Timon de Groot


Thread (3 messages)

« previous php.internals (#114717) next »