Parse local JSON file with jQuery and Javascript

前端 未结 2 1461
说谎
说谎 2021-01-18 02:38

I\'m trying to parse a JSON file located on my computer. I want to parse it. The JSON file has this structure:

{
  \"sites\": {
    \"site\": [
      {
              


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 02:41

    I don't think you need to parse the json. It will automatically parse the json since you are using $.getJSON().

提交回复
热议问题