Json Scala Play2

时间:2017-10-30 15:46:33

标签: scala

使用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"
      }

}

0 个答案:

没有答案