Skip to content
Sherpa - A serialization toolkit for Scala with macro-oriented case classes mapping
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Sherpa is a serialization toolkit and a 'reflection-less' case classes mapper for the Scala programming language.

  • sherpa-core: Serialization toolkit with compile time (macro-oriented) case classes mapping
  • sherpa-jackson: Jackson binding
  • sherpa-scalaz: Scalaz (7-M1) integration module

As this project is using macro, it need Scala 2.10

Sherpa is currently in early phase

Example usage

import sherpa._
import sherpa.serializer.jackson._

case class Person(name: String, age: Int, emails: Seq[String])

val mapper = Mapper[Person]
import mapper._

val person = Person("Alois Cochard", 27, List("", ""))

// Using mapper directly (serializer resolved implicitly)
parse(generate(alois)) // = Right(Person(Alois Cochard,27,Stream(, ?)))

// Using serializer directly (mapper resolved implicitly)
Jackson.parse[Person](Jackson.generate(alois)) // = Right(Person(Alois Cochard,27,Stream(, ?)))

// Or using the Scalaz integration (sherpa-scalaz needed)
import sherpa.scalaz._

// = IO[ByteString]
  .flatMap(bytes => serializer(Jackson).parse[Person](bytes))
// = IO[Validation[SerializerError, Person]]
// = Success(Person(Alois Cochard,27,Stream(, ?))))

Contribution Policy

Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.


This software is licensed under the Apache 2 license, quoted below.

Copyright 2012 Alois Cochard 

Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
You can’t perform that action at this time.