Fix JSON with interfaces.