我在一个包含纬度和经度对的文本文件中有一个JSON数据,现在我想将这些数据存储到MYSQL DB中,如何进行以及最好的方法请建议.
这是我的JSON数据
[{"latlon":{"lng":77.75124312,"lat":12.97123123},"type":"s"},
{"latlon":{"lon":77.73004942455374,"lat":12.98227579706589},"type":"s"},
{"latlon":{"lon":77.67374449291539,"lat":12.995490063545521},"type":"v"},
{"latlon":{"lon":77.6097147993144,"lat":12.970900929013666},"type":"s"},
{"latlon":{"lon":77.53933363476645,"lat":12.948316929346504},"type":"s"},
{"latlon":{"lng":77.48213123,"lat":12.91213213},"type":"s"}
.
.
.
.
]
The String may go up to 50 points
Run Code Online (Sandbox Code Playgroud)