response
Last updated
Last updated
HTTP get response to json, playable
```ruby
like http get
response = "{\n \"userId\": 1,\n \"id\": 1,\n \"title\": \"sunt aut facere repellat provident occaecati excepturi optio reprehenderit\"\n}"
body = JSON.parse(response) =>{"userId"=>1, "id"=>1, "title"=>"sunt aut facere repellat provident occaecati excepturi optio reprehenderit"} body["id"] => 1
body = JSON.parse(response, symbolize_names: true) => {:userId=>1, :id=>1, :title=>"sunt aut facere repellat provident occaecati excepturi optio reprehenderit"} body[:id] => 1
body = JSON.parse(response, object_class: OpenStruct) => # body.id => 1
```