使用Scala play2我有一个json列表,我有这种格式,我想获得一个列表中有一个idPatient = "test"
的json。我怎么能用scala play2做到这一点?
{
"msg_type": "i",
"correspondent": {
"idCorrespondent": "eee",
"profil": "e",
"firstName": "test",
"lastName": "test",
"mobile": "test"
},
"patient": {
"idPatient": "test",
"firstName": "ahmed",
"lastName": "test",
"birthdayDate": "test"
},
"result": {
"idResult": "12",
"dateOfResult": 1507,
"msg_type": "xxxxx",
"msg_raw": "xxxx1"
}
}