fix json_decode of word array

the json_decode was returning a single element
array with the value a stdClass object instead of
a php array