Replace Qt's own JSON library functions by Niels Lohmann's JSON library in the Export JSON dialog. This was necessary because for very large JSON objects Qt's library functions generated incomplete JSON exports. See issue #1789.