I Have tried many ways and googled but everywhere i getting same way out, use json gem to parse a JSON file.
JSON.parse(string)
And couple of links are also using same stackoverflow Link
I wanted to achieve it by pure Ruby code without using any gem or rails help.