• Stars
    star
    23
  • Rank 1,016,462 (Top 21 %)
  • Language
    Scala
  • Created about 10 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Better JSON support for Scala

Build status

SON of JSON

A Scala library for dealing with JSON in a way that makes it almost feel native. If you want to understand how it compares to json4s, you might be interested to read about it here.

â‘  It requires just one import

import nl.typeset.sonofjson._

â‘¡ Creating an object is easy

// You can parse it from a String
val person = parse("""{ "name" : { "first" : "John", "last" : "Doe" } }""")

// Or build it yourself
val person = obj(
  name = obj(
     first = "John",
     last = "Doe"
  )
)

â‘¢ Accessing it is easy too

// Access the object and ask for a String representation
person.name.first.as[String]

// Or leave it to SON of JSON to get you a String representation
var first: String = person.name.first

â‘£ Modifying it is even easier

person.name.first = "Jack"

⑤ And rendering it to JSON is just

render(person)

More Repositories

1

angular-pouchdb

Angular wrapper for PouchDB, making sure that callbacks are called within $rootScope.$apply(), and using $q promises instead of callbacks. On top of that, it supports an `ng-repeat`-alike directive for traversing the contents of your database.
CoffeeScript
166
star
2

monkeyman

Simple static site generator for Scala and middleman lovers
Scala
51
star
3

cruftless

Get rid of the cruft of XML processing
CoffeeScript
29
star
4

barhandles

Extracting variables from Handlebars templates.
CoffeeScript
18
star
5

difr

Poor-man's code review tool; creates a static HTML page of a git diff with an editor for comments embedded.
Scala
17
star
6

spring-me

Spring dependency injection for platforms not supporting reflection.
Java
6
star
7

kmeans

A scala version of k-means.
Scala
6
star
8

scala-rate-limiter

Testing rate limitation using higher order functions.
Scala
5
star
9

scala-tribes

Java
4
star
10

scala-from-zero

Some ideas on how to learn Scala in a slightly different way
3
star
11

idea

A little helper allowing you to Cmd-click on files in iTerm2 and open them in IntelliJ IDEA
CoffeeScript
3
star
12

upslug2

C++
2
star
13

sample-lastfm-client

Sample code, just to compare Scala syntax with Clojure syntax. Mind you, this is not by any means the start of a real LastFM client.
Scala
2
star
14

greader-java

A Java library for manipulating your Google Reader feeds.
Java
2
star
15

Spring-Kaha-Channel

A Channel built on top of ActiveMQ's Kaha DB
2
star
16

skypewatch

Listen for Skype events on Mac OS X
Objective-C
1
star
17

scalendar

Scala iCalendar Library
Scala
1
star
18

redis-async-gen

Redis generators
JavaScript
1
star
19

scala-async-http-client

Fooling around with the async-http-client in Scala
1
star
20

wmd-grails

A WMD plugin for Grails.
JavaScript
1
star
21

deconfluencer

A reverse proxy stripping off confluence stuff I don't want to see.
Java
1
star
22

netlify-vue-boilerplate

Boilerplate for NetlifyCMS with Nuxt.js
Vue
1
star
23

modello

Working repository to make sure we finally get RelaxNG support in Modello. (And no longer have to face those hideous XSD files.)
Java
1
star
24

scala-addressbook

Submission Scala addressbook contest; don't take this too serious.
Scala
1
star
25

ical-combinator

A Google App Engine project for combining calendars through a Restful API
Java
1
star
26

scala-lzw

Scala LZW
Scala
1
star
27

iterm2-image-scala

Tiny library for displaying images in the REPL, when running inside iTerm2.
Scala
1
star
28

light-brunch

Simple brunch skeleton, including the things I like.
CoffeeScript
1
star