Questions tagged [jerkson]

Jerkson is a Scala wrapper for Jackson which brings Scala's ease-of-use to Jackson's features.

Jerkson is a Scala wrapper for Jackson which brings Scala's ease-of-use to Jackson's features.

25 questions
1
vote
1 answer

Could not find implicit Marshaller in Spray.io when using Jackson

I have a Spray.io directive that handles a POST and I want to use Jerkson (scala interface for Jackson) to parse the incoming JSON into the appropriate class. post { path("") { entity(as[String]) { stuff => complete…
crockpotveggies
  • 12,682
  • 12
  • 70
  • 140
0
votes
0 answers

How to create generic method to parse nested json?

I hit a route of my microservice. I have common API to talk to any microservice and using jerkson JSON library. import com.codahale.jerkson.Json case class ApiResult[T]( private val content: Option[String], …
Mahesh Chand
  • 3,158
  • 19
  • 37
0
votes
2 answers

Parsing JSON with multiple tuples to List in scala
[ {"fname":"Foo","lname":"Pacman"}, {"fname":"Bar","lname":"Mario"}, {"fname":"Poo","lname":"Wario"} ] Well I have JSON string in this format, Now what I need is to convert each tuples -> {"fname":"Foo","lname":"Pacman"} To a Person object, for…
mane
  • 1,149
  • 16
  • 41
0
votes
1 answer

Jerkson JsonProperty not working

Using Jerkson version: com.cloudphysics jerkson_2.10 0.6.3 I have this case class: case class Parameter(val name:String, val value:String,…
YaOg
  • 1,748
  • 5
  • 24
  • 43
0
votes
0 answers

Spring REST Jerkson generates array format

I am using Spring MVC 3.2.2 as my REST framework. I am using Jerkson (Scala) Jackson wrapper. I am trying to figure out my when my rest layer returns a single object the json String contains square brackets ([]) as it was an array (although it is…
YaOg
  • 1,748
  • 5
  • 24
  • 43
0
votes
2 answers

Configure Play/Jerkson to deserialize single quoted (non-standard) JSON w/o duplicating a lot of code

In a Play 2.0 application, I need to deserialize some JSON from a source which I don't control which uses single-quotes around strings -- where the JSON spec calls for double-quotes. The solution using Jackson is here: Configure Jackson to…
jsalvata
  • 2,155
  • 15
  • 32
0
votes
1 answer

play, scala and jerkson noClassDefFound error

I am trying to work with jerkson in play and with scala 2.10. However, i want to load data fixtures based on a json files. for this prcoedure I'm trying to load the json with the "parse" command from jerkson. That ultimatly fails. I'm doing this in…
ins0m
  • 850
  • 10
  • 20
0
votes
1 answer

How can I use Scala2.10+Play2.1+Jerkson?

It seems Jerkson is no more available within Play2.1 (Scala 2.10) and I cannot find a solution on the Internet.
ideaboxer
  • 3,863
  • 8
  • 43
  • 62
0
votes
1 answer

using jerkson in scala for list of lists

I have the following, and want to use jerkson in scala, but am having issues with this. I'm sure this is a very amateur error, but was hoping to get some help from here. scala> val orig=List("this", List("a", "b", List("c", "d"))) orig:…
JPC
  • 1,891
  • 13
  • 29
0
votes
1 answer

Is there a way to loosely parse JSON with Jackson?

For instance, if key1:value1,key2:value2 is passed into the parser, I'd like it to be treated the same as: {"key1":"value1","key2","value2"}
Garrett Hall
  • 29,524
  • 10
  • 61
  • 76
1
2