Fixed compilation error caused by using wrong type for Json array indices.