|
@@ -61,7 +61,7 @@ let rec s_object depth o =
|
|
) fields;
|
|
) fields;
|
|
Buffer.add_string buf "}";
|
|
Buffer.add_string buf "}";
|
|
let s = Buffer.contents buf in
|
|
let s = Buffer.contents buf in
|
|
- create_with_length s (UTF8.length s)
|
|
|
|
|
|
+ create_with_length s (try UTF8.length s with _ -> String.length s)
|
|
|
|
|
|
and s_array depth va =
|
|
and s_array depth va =
|
|
join rempty [
|
|
join rempty [
|