I have a below String in Ruby. is there any way by which i can convert this string into JSON
{
drawer: {
stations: {
tv: {
header: "TV Channels",
logos: {
one: "www1",
two: "www2",
three: "www3"
}
}
}
}
}
Ideally there should be double quotes before and after the terms( like "drawer" instead of drawer). But the data returned from server is in the above format.
I am trying to use the JSON library to parse the string.