How to query the fields in JsObject

208 views
Skip to first unread message

Yashdeep Sharma

unread,
Apr 24, 2017, 5:24:08 AM4/24/17
to spray.io User List
val string = """ { "status" : "success" }"""

val json = string.parseJson

val status = json \ "status" (Not working not able to find symbol \)

Disclaimer :-

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail and destroy all copies of this message and any attachments. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. 

Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

Jan-Pieter van den Heuvel

unread,
Apr 25, 2017, 2:29:52 AM4/25/17
to spray...@googlegroups.com
Hope this helps.

Kind regards,
Jan-Pieter

--
You received this message because you are subscribed to the Google Groups "spray.io User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/spray-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/fd990610-3994-481d-a268-a62fd661ba70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yashdeep Sharma

unread,
Apr 28, 2017, 2:07:35 PM4/28/17
to spray.io User List
Hi Jan,

I found out that the json-lenses is the right thing that fulfill my requirement, but i wanted to know is it good to use in a comercial project.


On Tuesday, April 25, 2017 at 11:59:52 AM UTC+5:30, Jan-Pieter van den Heuvel wrote:
Hope this helps.

Kind regards,
Jan-Pieter
2017-04-24 11:19 GMT+02:00 'Yashdeep Sharma' via spray.io User List <spray...@googlegroups.com>:
val string = """ { "status" : "success" }"""

val json = string.parseJson

val status = json \ "status" (Not working not able to find symbol \)

Disclaimer :-

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail and destroy all copies of this message and any attachments. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. 

Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments.

--
You received this message because you are subscribed to the Google Groups "spray.io User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages