Fix heap overflow in json_indent