There is a difference between an unset JSON array element and an empty one. Don't loose that information.