Fix wrong JSON dump