On Nov 13, 2013, at 10:26 AM, mark edwards <lists / ruby-forum.com> wrote:

> tamouse - once again, thank you for your time and your patience with=20=

> newbies!
>=20
> where i ran into trouble was passing a string like this:
>=20
> This ruby string contains double "quote" characters and single 'quote'=20=

> characters
>=20
> using php, jScript was getting very confused with the quoting.  its =
like=20
> all double-quotes needed to be back-slashed, changed to %22,  or=20
> something like that.   but i will give this a try in ruby using your=20=

> approach.
>=20
> assuming this works, you will put a huge smile on my face!

I think even in your PHP case, you were unnecessarily putting the JSON =
in a string and parsing it on the client side.

To keep the ruby list pure, I=92ve shuffled off a PHP version to this =
gist: https://gist.github.com/tamouse/7461180