我们的 webclient 有一个 post 方法。当我尝试使用它的链接访问这个方法时,我得到了这个 json 文件:
{"user":
{"userID":0,"username":null,"password":null,"email":null,"telephone":null,"firstName":null,
"lastName":null,"dateOfBirth":null,"street":null,"number":null,"zipcode":null,"city":null,
"showPosition":false,"notificationEmail":false,"profielFoto":null,"deelnames":null,
"kosten":null,"trips":null,"enabled":true,"authorities":
[{"authority":"ROLE_USER"}],"accountNonLocked":true,"accountNonExpired":true,"credentialsNonExpired":true}}
但是我需要将此 JSON 文件转换为:
{"userID":0,"username":null,"password":null,"email":null,"telephone":null,"firstName":null,
"lastName":null,"dateOfBirth":null,"street":null,"number":null,"zipcode":null,"city":null,
"showPosition":false,"notificationEmail":false,"profielFoto":null,"deelnames":null,
"kosten":null,"trips":null,"enabled":true,"authorities":
[{"authority":"ROLE_USER"}],"accountNonLocked":true,"accountNonExpired":true,"credentialsNonExpired":true}
所以没有第一行。
我怎样才能做到这一点?
谢谢