Home

Awesome

MicroJson

A lightweight JSON model and parser for Scala and Scala.js; turns Strings into JSON and back again.

The main benefit of this library is that the code is pure scala and identical across JVM and JS. It's the default pickle format for my serialisation library prickle.

Maven Central

Build Status

Getting MicroJson

Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.benhutchison/microjson_2.13)

Scala.jvm <<<<<<< a257c299016e4c0ab67ebfc51001e4df715624e7 "com.github.benhutchison" %% "microjson" % "1.4"

Scala.js 0.6+ "com.github.benhutchison" %%% "microjson" % "1.4"

`"com.github.benhutchison" %% "microjson" % "<version above>"

Scala.js 1.x `"com.github.benhutchison" %%% "microjson" % "<version above>"

Scala 2.13, scalajs 1.x support

Changelog

VersionWhenChanges
1.0Oct 14Initial release with Prickle
1.1Feb 15Scala.js 0.6
1.2Apr 15Performance fixes as revealed by BooPickle tests
1.3Jun 15Performance
1.4Nov 16Scala 2.12, update libs
1.5Nov 17SBT 1.x, travis build
1.6Apr 20Scala 2.13, Scalajs 1.x

Notes

It's based on Haoyi Li's work, which was embedded into an earlier version of uPickle. I asked Haoyi if he'd be willing to publish it separately on Jul 3, 2014. He didn't want to himself but he gave me permission to if I wished to. It's not as fast as Jawn or native browser parsing, which is why uPickle stopped embedding it.