fjson 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +3 -0
- data/Rakefile +1 -1
- data/ext/json_ext/json_ext.c +3 -3
- metadata +1 -1
data/CHANGES
CHANGED
data/Rakefile
CHANGED
data/ext/json_ext/json_ext.c
CHANGED
@@ -111,7 +111,7 @@ static long _convert_utf8_char(input, i, result, supports_utf8)
|
|
111
111
|
if (i < 0 || RSTRING(input)->len <= i) {
|
112
112
|
return Qnil;
|
113
113
|
}
|
114
|
-
|
114
|
+
int c_current = (RSTRING(input)->ptr[i] & 0xff);
|
115
115
|
|
116
116
|
if(c_current == 0x08) {
|
117
117
|
rb_str_cat2(result, "\\b");
|
@@ -134,8 +134,8 @@ static long _convert_utf8_char(input, i, result, supports_utf8)
|
|
134
134
|
else if(c_current == '\\') {
|
135
135
|
rb_str_cat2(result, "\\\\");
|
136
136
|
}
|
137
|
-
else if(c_current == '
|
138
|
-
rb_str_cat2(result, "
|
137
|
+
else if(c_current == '/') {
|
138
|
+
rb_str_cat2(result, "\\/");
|
139
139
|
}
|
140
140
|
else if(0x00 <= c_current && c_current <= 0x1f) {
|
141
141
|
VALUE format_string = rb_str_new2("\\u%04x");
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fjson
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.4
|
7
7
|
date: 2006-10-17 00:00:00 -07:00
|
8
8
|
summary: This library is for parsing JSON strings and unparsing ruby data structures. This library is a fork of Florian Frank's JSON library with key parts implemented in C for performance improvements.
|
9
9
|
require_paths:
|