use correct operator in query based on JSON document

-- Brings out the difference between using '->' and '->>' in query based on JSON document
-- In the prescribed example a JSON object is being compared to a string
(raises error:    PG::UndefinedFunction: ERROR:  operator does not exist)
-- we can make use of '->>' to make sure that a string is returned