in reply to Re^2: Append JSON (from hashref)
in thread Append JSON (from hashref)

like Corion said, add it to $tmp

$tmp->{inputPhrase}=$SearchWord;
Then it will be converted to json just fine.

Edit: Now im not paying enough attention, The hash is inside an array at $tmp->[0] See Re^3: Append JSON (from hashref)