Alignak-monitoring-contrib / alignak-backend

Backend for alignak (REST API for configuration, retention, livestate, logs) based on Python Eve
GNU Affero General Public License v3.0
11 stars 4 forks source link

Settings.json comments ... #511

Closed mohierf closed 6 years ago

mohierf commented 6 years ago

Because the settings.json may be commented, it is not considered as a "real" JSON formatted file. The backend uses an inner regex to parse the comments out and this implies to escape the / (slash) character included in the fields values (eg. "http://localhost" must be "http:\/\/localhost").

Perharps updating the regex or using a Json lib would avoid this problem

mohierf commented 6 years ago

A library like: https://github.com/linjackson78/jstyleson ... would do the trick