removed explicit numeric indexes from array, fixed off-by-one error in the json pretty printer