JSON koduje tablicę Unset

encode array_values($unsetArray);
- array_values will return indexed array after unset
Rich Raven