So, I have a ruby program that takes a hash and turns it into a JSON string (lets say the hash is #FFFFFF) and that JSON string is sent to a javascript program where it needs to get #FFFFFF out of the JSON string, i've tried JSON.parse(); to no avail, and JSON.stringify(); only returns this "{\"color\":\"#FFFFFF\"}" how do I get it to return just #FFFFFF in a javascript string?
-
How are you passing this to javascript?charlietfl– charlietfl2017-05-08 00:52:30 +00:00Commented May 8, 2017 at 0:52
-
@charlietfl web socketsEPICBRONY– EPICBRONY2017-05-08 01:16:14 +00:00Commented May 8, 2017 at 1:16
Add a comment
|