This is all kinds of annoying. JSON will apparently encode a String but not=
 decode it? :

      [9] pry(main)> "foo".to_json
      =3D> "\"foo\""

      [10] pry(main)> JSON.parse "\"foo\""
      JSON::ParserError: 784: unexpected token at '"foo"'
      from /home/jonea/.rvm/rubies/ruby-2.3.2/lib/ruby/2.3.0/json/common.rb=
:156:in `parse'

      [11] pry(main)> JSON.parse "foo".to_json
      JSON::ParserError: 784: unexpected token at '"foo"'
      from /home/jonea/.rvm/rubies/ruby-2.3.2/lib/ruby/2.3.0/json/common.rb=
:156:in `parse'




Click here to view Company Information and Confidentiality Notice.<http://w=
ww.jameshall.co.uk/index.php/small-print/email-disclaimer>
(supressed text/html)
Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>