doc: Fix index type for json_array_foreach()
jansson 2.5