Fix JSON unpacking.