Use .attr instead of .data to get json selector. Prevents evaluation of [x] as array