microjson


License

License

Categories

Categories

JSON Data
GroupId

GroupId

com.github.benhutchison
ArtifactId

ArtifactId

microjson_sjs1_2.13
Last Version

Last Version

1.6
Release Date

Release Date

Type

Type

jar
Description

Description

microjson
microjson
Project URL

Project URL

https://github.com/benhutchison/microjson
Project Organization

Project Organization

com.github.benhutchison

Download microjson_sjs1_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.benhutchison/microjson_sjs1_2.13/ -->
<dependency>
    <groupId>com.github.benhutchison</groupId>
    <artifactId>microjson_sjs1_2.13</artifactId>
    <version>1.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.benhutchison/microjson_sjs1_2.13/
implementation 'com.github.benhutchison:microjson_sjs1_2.13:1.6'
// https://jarcasting.com/artifacts/com.github.benhutchison/microjson_sjs1_2.13/
implementation ("com.github.benhutchison:microjson_sjs1_2.13:1.6")
'com.github.benhutchison:microjson_sjs1_2.13:jar:1.6'
<dependency org="com.github.benhutchison" name="microjson_sjs1_2.13" rev="1.6">
  <artifact name="microjson_sjs1_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.benhutchison', module='microjson_sjs1_2.13', version='1.6')
)
libraryDependencies += "com.github.benhutchison" % "microjson_sjs1_2.13" % "1.6"
[com.github.benhutchison/microjson_sjs1_2.13 "1.6"]

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.2
org.scala-js : scalajs-library_2.13 jar 1.0.1

test (2)

Group / Artifact Type Version
org.scala-js : scalajs-test-bridge_2.13 jar 1.0.1
com.lihaoyi : utest_sjs1_2.13 jar 0.7.4

Project Modules

There are no modules declared in this project.

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" % ""

Scala.js 1.x `"com.github.benhutchison" %%% "microjson" % ""

Scala 2.13, scalajs 1.x support

Changelog

Version When Changes
1.0 Oct 14 Initial release with Prickle
1.1 Feb 15 Scala.js 0.6
1.2 Apr 15 Performance fixes as revealed by BooPickle tests
1.3 Jun 15 Performance
1.4 Nov 16 Scala 2.12, update libs
1.5 Nov 17 SBT 1.x, travis build
1.6 Apr 20 Scala 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.

Versions

Version
1.6
1.5