Prashant Ravi Darshan Prashant Ravi Darshan - 1 year ago 120
Ruby Question

Extract array in string rails

My string is


I want to get output in the below format


I want to extract array present in my string.

Answer Source

Just parse it with JSON.parse method like this ;

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download