Permalink
Browse files

updated README

  • Loading branch information...
1 parent cc0ae9d commit 836d74d6107174fd65bf2875441cc795fc068fe8 Peter Ohler committed Mar 29, 2012
Showing with 19 additions and 11 deletions.
  1. +2 −10 README.md
  2. +1 −0 ext/oj/oj.c
  3. +16 −1 notes
View
@@ -24,11 +24,9 @@ A fast JSON parser and Object marshaller as a Ruby gem.
## <a name="release">Release Notes</a>
-### Release 1.1.1
+### Release 1.2.0
- - The encoding option can now be an Encoding Object or a String.
-
- - Fixed Rubinius errors.
+ - Removed the encoding option and fixed a misunderstanding of the string encoding. Unicode code points are now used instead of byte codes. This is not compatible with previous releases but is compliant with RFC4627.
## <a name="description">Description</a>
@@ -59,12 +57,6 @@ methods exist then the Oj internal Object variable encoding is used.
Oj is compatible with Ruby 1.8.7, 1.9.2, 1.9.3, JRuby, and RBX.
-## <a name="plans">Planned Releases</a>
-
-- Release 1.0.1: Optimize the Oj::Doc dump() method to be native.
-
-- Release 1.1: A JSON stream parser. Pushed out for the Oj::Doc parser.
-
## <a name="compare">Comparisons</a>
### Fast Oj::Doc parser comparisons
View
@@ -732,6 +732,7 @@ define_mimic_json(VALUE self) {
symbolize_names_sym = ID2SYM(rb_intern("symbolize_names")); rb_ary_push(keep, symbolize_names_sym);
oj_default_options.mode = CompatMode;
+ oj_default_options.ascii_only = Yes;
}
return mimic;
}
View
17 notes
@@ -4,8 +4,23 @@
^c^s show subtree
- next
- - setup travis to run tests
+ - unicode
+ - remove option for encoding, always make UTF-8
+ - later allow utf-16
+ - keep ascii-only but make default - this is rcf compliant
+ - maybe change the name to 'unicode' or reverse it to allow-high-bits
+ -
+ - change encoding to be unicode
+ - use utf-16 surrogate pairs for extended
+ - size logic
+ - if character has hi bit set
+ - size is number of bits set
+ - skip that many characters unless one of them is 0 or exceed length
+ -
+
+ - setup travis to run tests
+ - make sure time handles nsec instead of usec
- stream
- use with Oj::Doc

2 comments on commit 836d74d

Owner

ohler55 replied Oct 10, 2012

Please be more verbose with your issue. I'm not sure what the sad face is supposed to mean. I see you are referring to old files.

yury replied Oct 11, 2012

Sorry, trying to make rails render json: {non_ascii:'привет'} to not escape utf-8 chars.

Seem that it's rails ActiveSupport::JSON::Encoding#encode thing...

Sorry again

Please sign in to comment.