4 ms·
I agree with others that it doesn't matter in this case. The author used a tool he knows to perform a simple job. At the risk of providing something useful to
by arnarbi 12y ago
I agree with others that it doesn't matter in this case. The author used a tool he knows to perform a simple job.
At the risk of providing something useful to the discussion though, I'd like to point out the excellent tool jq: http://stedolan.github.io/jq/ http://stedolan.github.io/jq/
Here's how to use it for the conversion in the article:
jq '.places[] | [.n,.i,.p[0],.p[1],.s] | map(tostring) | join(",")' hotelMarkers.js
(after editing hotelMarkers.js into a proper json file)