|
@@ -52,13 +52,21 @@
|
|
|
},
|
|
|
{
|
|
|
// String options that have a comma in their values need to have
|
|
|
- // it escaped (i.e. each comma is predeced by two backslashes). That's
|
|
|
- // because commas are reserved for separating fields in compound
|
|
|
- // options. At the same time, we need to be conformant with JSON spec,
|
|
|
- // that does not allow "\,". Therefore the slightly uncommon double
|
|
|
- // backslashes natation is needed.
|
|
|
+ // it escaped (i.e. each comma is predeced by two backslashes).
|
|
|
+ // That's because commas are reserved for separating fields in
|
|
|
+ // compound options. At the same time, we need to be conformant
|
|
|
+ // with JSON spec, that does not allow "\,". Therefore the
|
|
|
+ // slightly uncommon double backslashes notation is needed.
|
|
|
"name": "new-posix-timezone",
|
|
|
"data": "EST5EDT4\\,M3.2.0/02:00\\,M11.1.0/02:00"
|
|
|
+
|
|
|
+ // Legal JSON escapes are \ followed by "\/bfnrt character
|
|
|
+ // or \u followed by 4 hexa-decimal numbers (currently Kea
|
|
|
+ // supports only \u0000 to \u00ff code points).
|
|
|
+ // CSV processing translates '\\' into '\' and '\,' into ','
|
|
|
+ // only so for instance '\x' is translated into '\x'. But
|
|
|
+ // as it works on a JSON string value each of these '\'
|
|
|
+ // characters must be doubled on JSON input.
|
|
|
}
|
|
|
],
|
|
|
"pools": [
|