Due to -Werror, this fails to build on gcc >= 10.0.1. This has been reported to json upstream, and fixed in this pr.
-Werror
Backport the fix to horizon