title: Parse JSON request with REGEX
body: <p>I'd like to parse the JSON output from an IEX Cloud stock quote query: <a href="https://cloud.iexapis.com/stable/stock/aapl/quote?token=YOUR_TOKEN_HERE" rel="nofollow noreferrer">https://cloud.iexapis.com/stable/stock/aapl/quote?token=YOUR_TOKEN_HERE</a></p>
  
  <p>I have tired to use Regex101 to solve the issue:
  <a href="https://regex101.com/r/y8i01T/1/" rel="nofollow noreferrer">https://regex101.com/r/y8i01T/1/</a></p>
  
  <p>Here is the Regex expression that I tried:<code>"([^"]+)":"?([^",\s]+)</code></p>
  
  <p>Here is the example of a IEX Cloud stock quote output for Apple:</p>
  
  <pre><code>{
       "symbol":"AAPL", 
       "companyName":"Apple, Inc.", 
       "calculationPrice":"close", 
       "open":204.86, 
       "openTime":1556285400914, 
       "close":204.3, 
       "closeTime":1556308800303, 
       "high":205, 
       "low":202.12, 
       "latestPrice":204.3, 
       "latestSource":"Close", 
       "latestTime":"April 26, 2019", 
       "latestUpdate":1556308800303, 
       "latestVolume":18604306, 
       "iexRealtimePrice":204.34, 
       "iexRealtimeSize":48, 
       "iexLastUpdated":1556308799763, 
       "delayedPrice":204.3, 
       "delayedPriceTime":1556308800303, 
       "extendedPrice":204.46, 
       "extendedChange":0.16, 
       "extendedChangePercent":0.00078, 
       "extendedPriceTime":1556310657637, 
       "previousClose":205.28, 
       "change":-0.98, 
       "changePercent":-0.00477, 
       "iexMarketPercent":0.030716437366704246, 
       "iexVolume":571458, 
       "avgTotalVolume":27717780, 
       "iexBidPrice":0, 
       "iexBidSize":0, 
       "iexAskPrice":0, 
       "iexAskSize":0, 
       "marketCap":963331704000, 
       "peRatio":16.65, 
       "week52High":233.47, 
       "week52Low":142, 
       "ytdChange":0.29512900000000003 
  }
  </code></pre>
  
  <p>I want to save the key value pairs in the JSON response without quotes around the key and gather the value starting after the colon (:). I need to exclude any quotes for text, the comma at the end of each line and include the last key-value pair that does not include a comma at the end of the line.</p>
  
  <p>For example, <code>"peRatio":16.65,</code> should have the key equal to <code>peRatio</code> and the value equal to <code>16.65</code>. Or another example, <code>"changePercent":-0.00477,</code> should have a key equal to <code>changePercent</code> and a value of <code>-0.00477</code>. If it's a text such as <code>"companyName":"Apple, Inc.",</code>, it should have a key equal to  <code>companyName</code> and a value equal to <code>Apple, Inc.</code></p>
  
  <p>Also, the last JSON key-value entry: <code>"ytdChange":0.29512900000000003</code> does not have a comma and that needs to be accounted for.</p>