On Thu, Dec 8, 2016 at 10:49 PM, Andy Jones <Andy.Jones / jameshall.co.uk> wrote:
> This is all kinds of annoying. JSON will apparently encode a String but not
> decode it? :
> ...
> [11] pry(main)> JSON.parse "foo".to_json
> JSON::ParserError: 784: unexpected token at '"foo"'

ri JSON

one may read the terse manual at least 2x

best regards
--botp

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>