0

So i have this coming back from my webscrape

formatted_total_price
£66.00
formatted_total_price
£128.00
formatted_total_price
£246.00
formatted_total_price
£243.20
formatted_total_price
£242.86
formatted_total_price
£242.50

Heres the code for this:

   if text.content =~ /more_options_on_polling/
     price1 = text.to_s.scan(/\"(formatted_(?:total_price))\":\"(.+?)\"/).uniq
     puts price1
   end

How would i go about making this into json so that i can append just the price to a table?

Thanks Sam

2
  • 1 question is enough. You didn't duplicate the same question, but 4 times in a row... Commented Jun 7, 2016 at 11:37
  • What would you like the json to look like? Commented Jun 21, 2016 at 9:11

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.