Skip to content

Releases: rajatkb/JASP_Another_Json_Scala_Parser

Little optimization

08 Jan 18:21
Compare
Choose a tag to compare

The file source is now being handled by native java io. The file stream is not converted to view (extra overhead). Overall 217seconds to citylots.json. Which is a significant improvement? from 227seconds. It's to micro optimize the entire code. Before that documentation is important. But THIS IS THE FASTEST VARIANT OF THE PARSER. LAZY VERSION COMING SOON.

Easy API

04 Jan 19:41
Compare
Choose a tag to compare

It's easier to write type-safe code now. You still have to know the data type though. So make sure you do it right. Errors and exception added in the implicit for the same.

Lazy evaluation

01 Jan 20:08
Compare
Choose a tag to compare

Due to some bad implementation, the library was not working lazily. Tokenizer was passing a stream which was eagerly evaluated by the Lexical Analyzer due to usage of "val" binding. Fixed the same. Benchmarked with citylots.json. Parsed and constructed immutable map in 227s for 413122 number of lines of nested Json.

API Changes

31 Dec 10:26
Compare
Choose a tag to compare

Now added the ability to use apply() method on all of the concrete classes of JsonArray and JsonObject. Basic values however does not supports them and will raise IllegalAccessException on calling apply. This allows for a smoother syntax that is more close to how we would deal with Json in practice

First release

31 Dec 07:31
Compare
Choose a tag to compare

Supports basic parsing of Json files