Fixed index shenanigans with JSON

pal pal spls sosls work