title: golang, revel, How to parse post json?
body: <p>I'm rather new in golang, but I'm trying hard..</p>
  
  <p>I'm trying to send json by post request to the revel controller, and parse it on the revel side. </p>
  
  <p>But while getting the result I cannot Unmarshal it... I'm sending an array </p>
  
  <pre><code>json_encode(array("one","two","three"))
  </code></pre>
  
  <p>But I can't find the correct way to work with such a data. I'm not sure do I need to make json before sending it or not..</p>
  
  <pre><code>func (c KpiCtrl) GetData() revel.Result {
      content, _ := ioutil.ReadAll(c.Request.Body)
      ...
      return c.RenderJson(content)
      }
  </code></pre>
  
  <p>returns </p>
  
  <pre><code>"WyJvbmUiLCJ0d28iLCJ0aHJlZSJd"
  </code></pre>
  
  <p>I tried to use json.Unmarshal but it returns errors.. What is the best practice to work with post data sent by curl to revel controller? </p>