diff options
Diffstat (limited to 'localtidygeojson')
-rwxr-xr-x | localtidygeojson | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localtidygeojson b/localtidygeojson index 23d95c5..49f8c6e 100755 --- a/localtidygeojson +++ b/localtidygeojson @@ -16,8 +16,8 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # -# Depends: libjson-xs-perl moreutils +# Depends: jq moreutils set -eu -json_xs < "$1" | perl -0 -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' | sponge "$1" +jq . "$1" | perl -0 -pe 's/ /\t/g; s/},\s*{/}, {/g; s/\[\s*([\d.,]+)\s*([\d.]+)\s*\]/[$1 $2]/g' | sponge "$1" |