title: How do i create a json object from an API response
body: <p>I am trying to consume a bitbucket API which returns me the contents of a file in a repository. However, the response is not your typical JSON format but it is in plain text (basically a string with all the contents in that file).</p>
  <p>For example:</p>
  <h2>text file in repository (dotted lines represent the text file)</h2>
  <p>| a = 90 |
  | B = 70 |
  |        |</p>
  <hr />
  <p>response:
  &quot;a=90\nb=70&quot;</p>
  <p>How am i able to convert this response to a json format after consuming the API? I want the format to be something like this (so that i would be able to drag the fields into the UI):</p>
  <p>{'a':90, 'b':70}</p>