Diff for /parser3/src/classes/json.C between versions 1.69 and 1.71

version 1.69, 2025/12/17 20:34:20 version 1.71, 2026/10/13 20:02:00
Line 1 Line 1
 /** @file  /** @file
         Parser: @b json parser class.          Parser: @b json parser class.
   
         Copyright (c) 2000-2024 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2000-2026 Art. Lebedev Studio (https://www.artlebedev.com)
         Authors: Konstantin Morshnev <moko@design.ru>          Authors: Konstantin Morshnev <moko@design.ru>
 */  */
   
Line 258  static const char* json_error_message(in Line 258  static const char* json_error_message(in
         return error_messages[error_code];          return error_messages[error_code];
 }  }
   
 extern String::Language get_untaint_lang(const String& lang_name);  
   
 #define SOURCE_MAX_LEN 60  #define SOURCE_MAX_LEN 60
   
 void json_exception_with_source(Request& r, const char* msg, const char* json, int offset){  void json_exception_with_source(Request& r, const char* msg, const char* json, int offset){
Line 359  static void _parse(Request& r, MethodPar Line 357  static void _parse(Request& r, MethodPar
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* value=options->get("taint")) {                          if(Value* value=options->get("taint")) {
                                 json.taint=get_untaint_lang(value->as_string());                                  json.taint=String::name2lang(value->as_string());
                                 valid_options++;                                  valid_options++;
                         }                          }
                         if(Value* value=options->get("object")) {                          if(Value* value=options->get("object")) {

Removed from v.1.69  
changed lines
  Added in v.1.71


E-mail: