# \--minify breaks on JSON since 59.0

**URL:** <https://discourse.gohugo.io/t/minify-breaks-on-json-since-59-0/21573>\
**Category:** support\
**Created:** [November 1, 2019, 9:10pm UTC](https://discourse.gohugo.io/t/minify-breaks-on-json-since-59-0/21573 "2019-11-01T21:10:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [November 1, 2019, 9:10pm UTC](https://discourse.gohugo.io/t/minify-breaks-on-json-since-59-0/21573/1 "2019-11-01T21:10:47Z")

</div>

Since 59.0 hugo throws errors when trying to minify JSON files.

```auto
Building sites … ERROR 2019/11/01 16:57:44 parse error:1:1: unexpected character
    1: {"output":{"data":{"created":"2010-02-11T12:46:02Z","draf...
       ^
ERROR 2019/11/01 16:57:44 parse error:1:1: unexpected character
    1: {"output":{"data":{"created":"2010-03-08T16:25:25Z","draf...
       ^

```

It appears the minify lib has been updated to `v2.5.2` with Hugo 59.0 so wondered if that could trigger the issue… [https://github.com/gohugoio/hugo/commit/b401858ebd346c433dd69a260eba7098bded5a30](https://github.com/gohugoio/hugo/commit/b401858ebd346c433dd69a260eba7098bded5a30)

I’ll try and share a repo later.

Thanks!

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [November 1, 2019, 9:28pm UTC](https://discourse.gohugo.io/t/minify-breaks-on-json-since-59-0/21573/2 "2019-11-01T21:28:29Z")

</div>

For obvious bugs, it’s better to create a GH issue directly.

---

<div class="post-metadata">

**Author:** ![regis](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/regis/32/4958_2.png) [@regis](https://discourse.gohugo.io/u/regis)\
**Post date:** [November 1, 2019, 10:00pm UTC](https://discourse.gohugo.io/t/minify-breaks-on-json-since-59-0/21573/3 "2019-11-01T22:00:46Z")

</div>

Here you go: [https://github.com/gohugoio/hugo/issues/6472](https://github.com/gohugoio/hugo/issues/6472)

Not sure when I’ll be able to share a repo though.
