title: Helping using JSON for an API
body: <p>I don't really understand how this API is supposed to work, as I've never worked with JSON before.</p>
  <p>The documentation doesn't give any examples, but it says it the end-points in this API support both POST and GET operations, returning JSON.</p>
  <p>My question is, I'm not sure exactly how to implement this, let's say I just want to pull all the data into a simple page such as this:</p>
  <p><strong>City:</strong> <em>Salem</em></p>
  <p><strong>Zip Code:</strong> <em>97302</em></p>
  <p>etc...</p>
  <p>I'm not quite sure where to start with this:</p>
  <blockquote>
  <p>POST http://[your RepMan hostname]/api/v1/account/reputation/current.json</p>
  <p>GET http://[your RepMan hostname]/api/v1/account/reputation/current.json</p>
  <p>Following is a list of arguments for the POST body or GET query string. All values should be properly encoded as per a normal POST body or GET query string.</p>
  </blockquote>
  <pre><code>| Field      | Ordinality | Datatype | Description
  | pid        | 1          | string   | This is your partner ID as provided by us to access the API.
  | apiKey     | 1          | string   | This is your API Key as provided by use to access the API.
  | srid       | ?          | string   | This is the unique RepMan ID for the account. Either this or customerId must be specified.
  | customerId | ?          | string   | This is your unique customer id for the account. Either this or srid must be specified.
  </code></pre>
  <blockquote>
  <p>For a 200 response, you will receive the following JSON content:</p>
  </blockquote>
  <pre><code>{
  account : {
      srid        : &quot;DW5SRB36&quot;,
      lastName    : &quot;Morimoto&quot;,
      pid         : &quot;SRP&quot;,
      customerId  : null,
      firstName   : &quot;Masaharu&quot;
  },
  company : {
      city        : &quot;New York&quot;,
      postalZip   : &quot;10011&quot;,
      provState   : &quot;NY&quot;,
      name        : &quot;Morimoto&quot;,
      address     : &quot;88 10th Ave&quot;
  },
  visibility : {
      found       : 18,
      missing     : 9
  },
  reviews : {
      1star       : 5,
      4star       : 37,
      3star       : 44,
      5star       : 66,
      2star       : 5
  },
  competition : {
      Restaurants in New York : {
          Megu    : 1.82,
          Morimoto: 52.95,
          Matsuri : 18.13,
          Buddakan: 0.93,
          Nobu    : 26.17
      }
  },
  social : {
      checkins            : 5015,
      twitter_followers   : 8154,
      facebook_likes      : 1134
  },
  mentions : {
      07-09-2011 : {
          positive    : 0,
          neutral     : 0,
          negative    : 0
      },
      07-07-2011: {
          positive    : 2,
          neutral     : 3,
          negative    : 0
      },
      07-05-2011: {
          positive    : 1,
          neutral     : 2,
           negative   : 0
      },
      07-11-2011: {
          positive    : 2,
          neutral     : 2,
          negative    : 0
      },
      07-06-2011: {
          positive    : 5,
          neutral     : 2,
          negative    : 0
      },
      07-10-2011: {
          positive    : 3,
          neutral     : 4,
          negative    : 0
      },
      07-08-2011: {
          positive    : 1,
          neutral     : 5,
          negative    : 0
      }
  }
  }
  }
  </code></pre>