Created
November 18, 2013 15:02
-
-
Save gbougeard/7529214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
implicit val reads: Reads[PostedMessage] = ( | |
(__ \ "_id").read[String] ~ | |
(__ \ "@message").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "CPAID").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "frompartyid").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "topartyid").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "CONVERSATIONID").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "msgId").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "action").read[String] ~ | |
(__ \ "_source" \ "@fields" \ "service").read[String] | |
)(PostedMessage.apply _) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No I think its the 3-levels-deep paths that pose problem!
Can you try something like ?