This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding initial readme, adding initial encoder code
- Loading branch information
1 parent
94650ad
commit 03e9844
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
= WARNING: THIS CODE IS EXPERIMENTAL AT THE MOMENT | ||
|
||
= JSON Machine | ||
|
||
A modern, pure-ruby streaming JSON parser/encoder modeled after yajl-ruby. | ||
|
||
My intention is to create a pure-ruby, SAX-like, streaming JSON parser that allows the caller to build their own objects while parsing is happening. | ||
For example, by overriding the "found_string(str)" method, the caller can scan and parse out other types of objects (like say, Time or Date). | ||
|
||
I have the parser working, and according to my testing it's able to generate matching output to the JSON gem, ActiveSupport and yajl-ruby but with one important difference. | ||
It has better UTF-8 support (specifically regarding surrogate character sequences) and [will eventually be] able to parse and encode to/from a stream in chunks. | ||
|
||
Now that I have the parser working, my next step is to go back over the implementation and optimize the shit out of it. | ||
Help/suggestions would be greatly appreciated :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters