Hyperlinks with css fail with JSON?

Hyperlinks with css fail with JSON?

cmanvacmanva Posts: 37Questions: 0Answers: 0
edited April 2011 in General
I am trying to send hyperlinks with css thru JSON. Its keeps failing...because of the single/double quote enclosing url and class attribute:

Need help to format it for JSON? I don't want to strip single or double quotes..they are needed for css to work. My hyperlink:

Share

Note: anyone have a list of illegal characters to replace for JSON
Using classic asp

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    You just need to get the escaping of the character correct for the JSON. It would probably be worth using a library to get it right as there are a couple of little 'extra bits' which need to be considered. I've not use ASP Classic myself, but this was the top hit on Google: http://stackoverflow.com/questions/1019223/any-good-libraries-for-parsing-json-in-classic-asp - hopefully of some help.

    Allan
This discussion has been closed.