debug
add json data
.indexOf ("in" doesn't work for arrays)