I use a simple CSV file named data.csv :
name,firstname,age
bidule,marcel,45
machin,joseph,34
truc,paul,12
When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json
I get :
[{"nom":"bidule","prenom":"marcel","age":"45"},{"nom":"machin","prenom":"joseph","age":"34"},{"nom":"truc","prenom":"paul","age":"12"}]
OK
When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json&age=45 (filter age=45, the fisrt row)
I get :
[{"nom":"bidule","prenom":"marcel","age":"45"}]
OK
When I do :
http://timmy.icam-toulouse.fr/i48/?source=http://timmy.icam-toulouse.fr/eleve/data.csv&format=json&age=12 (filter age=12, the third row)
I get :
{"2":{"nom":"truc","prenom":"paul","age":"12"}}
BAD.
Why do I have {“2”: … and not [{"nom":"truc","prenom":"paul","age":"12"}] as I can expect?