mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
performance of the GUI. This encodes the configuration into the JSON format in a manager header, "JSON: ". The encoded information can be directly used as a javascript object, so no parsing is needed. For large configuration files, this can greatly improve loading times in the GUI. Furthermore, the encoding takes up a lot less space when being transmitted than the other alternatives. (Inspired by discussion with Pari) Here is an example of what you get: http://localhost:8088/asterisk/rawman?action=getconfigjson&filename=users.conf Response: Success JSON: {"general":["hasvoicemail=yes"],"6000":["fullname=russell","secret=1234"]} git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@56323 65c4cc65-6c06-0410-ace0-fbb531ad65f3