Instead of using file operations to emulate the creation of call JSON, this should be handled by the new JSON library. This should ultimately be easier to maintain, less prone to typo errors, and provide easier-to-read output.
Upon call completion, the call information is first collected into an ordered_json object before being written to disk with two-space indentation.
This json object is now included in the Call_Data_t struct, and passed back to call_info after generation. Doing so allows upload plugins to have direct access to this call end data without re-reading the .json file, or including a redundant method to recreate it locally.
Instead of using file operations to emulate the creation of call JSON, this should be handled by the new JSON library. This should ultimately be easier to maintain, less prone to typo errors, and provide easier-to-read output.
Upon call completion, the call information is first collected into an
ordered_json
object before being written to disk with two-space indentation.This json object is now included in the
Call_Data_t
struct, and passed back tocall_info
after generation. Doing so allows upload plugins to have direct access to this call end data without re-reading the .json file, or including a redundant method to recreate it locally.