下面是一個完整的字符串,如何將字符串從「{」拆分爲「}」意味着需要完整的對象。從給定的最後一個特定關鍵字字符串拆分
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 234 0 159 100 75 584 275 --:--:-- --:--:-- --:--:-- 584
{"scope":"Production","token_type":"bearer","expires_in":78,"refresh_token":"eregfgfg","access_token":"swewe23231c323"}
需要結果:
{"scope":"Production","token_type":"bearer","expires_in":78,"refresh_token":"eregfgfg","access_token":"swewe23231c323"}
請詳細說明您需要從您那裏得到的問題真的很難理解您的要求 – Tanmay
嘗試'json.parse()' –
_how將字符串從「 {「到」}「_ - > Fi x服務器的響應 – Andreas