php json字符串轉為數組或對象
從網上查到的方法是 用get_object_vars 把類類型轉換成數組 然后在用foreach 遍歷即可 $array = get_object_vars($test); $json= '[{ ...
從網上查到的方法是 用get_object_vars 把類類型轉換成數組 然后在用foreach 遍歷即可 $array = get_object_vars($test); $json= '[{ ...
方法1: 讀取文件中的json字符串, 再用json.loads轉為python字典 import json str_file = './960x540/config.json' ...