Fix JSON representation