Index: base/json/json_reader.h |
diff --git a/base/json/json_reader.h b/base/json/json_reader.h |
index a954821a288d690648457ae4c250a2a45ba0a4b1..c2108c628586df15ab6601bbacff021f57dd850c 100644 |
--- a/base/json/json_reader.h |
+++ b/base/json/json_reader.h |
@@ -55,6 +55,11 @@ enum JSONParserOptions { |
// if the child is Remove()d from root, it would result in use-after-free |
// unless it is DeepCopy()ed or this option is used. |
JSON_DETACHABLE_CHILDREN = 1 << 1, |
+ |
+ // If set the parser does not validate strings. If not set, string values |
+ // of non-utf strings are considered hard errors and result in parsing |
+ // failing. |
+ JSON_ALLOW_NON_UTF_STRINGS = 1 << 2, |
}; |
class BASE_EXPORT JSONReader { |