You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My 2 cents though: why is this necessary? I can see the benefit of having such functionality but json_encode and json_decode are the two main methods used when parsing JSON and are part of PHP. To introduce HJSON one has to implement something that would allow the parsing of the file with HJSON format.
I checked GitHub and there is such a parser but it is around 1-2k lines long. To introduce such complexity into Phalcon will make this parsing slower and not faster plus it will be bloat on the framework.
Request for HJSON (https://hjson.github.io/) in phalcon configs it supports comments and allows to write easier to read JSON configs. It can have similar functions to existing Configs in https://docs.phalcon.io/4.0/en/api/phalcon_config
HJson config example:
PHP example based on docs:
Valid HJSON File:
The text was updated successfully, but these errors were encountered: