C++ script to change XML format data to JSON.