On Mon, Mar 8, 2010 at 12:19 PM, Brian Candler <b.candler / pobox.com> wrote:
>... If you are afraid of building an extra string, then how
> about:
>
> def jparse(str)
> =A0return JSON.parse(str) if str =3D~ /\A\s*[{\[]/
> =A0JSON.parse("[#{str}]")[0]
> end

Definitely more robust, since that will handle numbers too.  Thanks

Aaron out.