mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
The configuration format from the server is almost already a superset of JSON with exception of two cases: 1) trailing commas from values at the top level (although they are supported inside of maps) 2) initial and final brackets on the top level section. This change relaxes the two cases above to just skip those tokens so that the config syntax can also support valid JSON objects for configuring the server which might be helpful when generating it programmatically.