Add JSON format

New JSON export format + monitoring feature to debug the paste function.