tag:blogger.com,1999:blog-2708349453904691513.post3907451057499794887..comments2022-03-27T17:28:15.522+02:00Comments on Martin Krasser's Blog: Using JAXB for XML and JSON APIs in Scala Web ApplicationsMartin Krasserhttp://www.blogger.com/profile/11765963540395771125noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2708349453904691513.post-41427859311874675642014-09-30T00:52:46.161+02:002014-09-30T00:52:46.161+02:00Hi Martin,
Thanks for this great post and the acco...Hi Martin,<br />Thanks for this great post and the accompanying github repo. They were literally the only resources on JAXB in Scala that I could find and I wouldn't have got anywhere in my experimentations without them.<br /><br />I ran into a few corner cases around Options and Lists and <a href="http://caoilte.org/scala/2014/09/29/bending-jaxb-to-the-will-of-scala-1-of-2/" rel="nofollow">decided to blog about them</a>.<br /><br />I hope that's okay!Caoiltehttps://www.blogger.com/profile/16640493808944989240noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-35545604530912134602012-04-14T08:26:53.217+02:002012-04-14T08:26:53.217+02:00Good catch, thanks. Updated the blog.Good catch, thanks. Updated the blog.Martin Krasserhttps://www.blogger.com/profile/11765963540395771125noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-83675465677136068962012-04-13T22:12:20.149+02:002012-04-13T22:12:20.149+02:00> You can reuse this trait in other application...> You can reuse this trait in other applications as is, there are no dependencies to the rest of the project.<br /><br />Just want to comment that there is a dependency on Syserror, which is just....<br /><br /> @XmlRootElement(name = "sys-error")<br /> @XmlAccessorType(XmlAccessType.FIELD)<br /> case class SysError(message: String) {<br /> def this() = this(null)<br /> }<br /><br /> object SysError {<br /> val NotFound = SysError("Not Found")<br /> }evaneushttps://www.blogger.com/profile/14448048525446858658noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-4344460645270898702012-04-04T21:32:34.989+02:002012-04-04T21:32:34.989+02:00This comment has been removed by the author.Sebastiansenhttps://www.blogger.com/profile/00830500752348103610noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-82068743843921535822012-03-29T01:00:17.209+02:002012-03-29T01:00:17.209+02:00The move to play 2 is looking great!!!
FYI to dow...The move to play 2 is looking great!!!<br /><br />FYI to download the play version>>>>> git clone https://github.com/krasserm/eventsourcing-example.git --branch playjpmclemorehttps://www.blogger.com/profile/11190411245235205619noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-88610896212575062782012-02-23T14:43:16.914+01:002012-02-23T14:43:16.914+01:00I've never used Jerkson, so I cannot make a co...I've never used Jerkson, so I cannot make a comparison. However, if I only wanted to build a JSON API for a Scala web app, I'd probably follow a Jerkson-based approach first or use Play's JSON support on top of Jerkson before following a JAXB-based approach. I gave the JAXB-based approach a try because I wanted to explore if it's possible to generate XML and JSON APIs from a single binding definition (JAXB annotations). I'm still experimenting ...Martin Krasserhttps://www.blogger.com/profile/11765963540395771125noreply@blogger.comtag:blogger.com,1999:blog-2708349453904691513.post-91569920122506030052012-02-23T14:25:30.639+01:002012-02-23T14:25:30.639+01:00Thanks for the article.
What do you think of Jerk...Thanks for the article.<br /><br />What do you think of Jerkson? It's a wrapper around Jackson, and then I've also made a pull request to use default parameters if no equivalent is provided in the JSON: https://github.com/codahale/jerkson/pull/42Anonymousnoreply@blogger.com