Cpp While Loop Syntax Json Validator And Formatter