Skip to content

Instantly share code, notes, and snippets.

@saml
Last active December 14, 2015 22:59
Show Gist options
  • Save saml/5162549 to your computer and use it in GitHub Desktop.
Save saml/5162549 to your computer and use it in GitHub Desktop.
<qu1j0t3> hm, typesafe and others hiring http://functionaljobs.com/jobs/search/?q=scala
<saml> http://mandubian.com/2013/02/21/play-json-stand-alone/
<saml> wtf is that website i can't even highlight code snippet
<aloiscochard> saml: this is because it's volatile code
<qu1j0t3> aloiscochard: nothing a good heavy bucket can't fix
<aloiscochard> qu1j0t3: bucket-pasting is indeed the best approach here
<saml> play-json can't deserialize either
<saml> given model: https://github.com/saml/salat-trait-test/blob/master/src/main/scala/model/Model.scala can't deserialize simple json https://github.com/saml/salat-trait-test/blob/master/src/main/scala/app/SalatTraitTest.scala
<aloiscochard> this is not simple saml , there is polymorphism
<aloiscochard> saml: lift-json handle that
<aloiscochard> play-json should too
<aloiscochard> saml: search for 'Serializing polymorphic Lists' on https://github.com/lift/lift/tree/master/framework/lift-base/lift-json/
<aloiscochard> saml: it's not possible to deserialize a MenuHeader into a Menu
<aloiscochard> saml: Menu is an abstract type
<aloiscochard> saml: you need to deserialize into concrete type
<aloiscochard> of course, things can be seen with a completely different point of view using qu1j0t3 approach
<qu1j0t3> mmfmmfmm mhhh
<benj_> once you have a bucket on your head, next thing is to type with a spade
<qu1j0t3> benj_: got sand in my keyboard @($@($#&@($&@##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment