title: Using JSON requests in Google App Engine (Go programming language)
body: <p>I am trying to send requests in JSON format from the Javascript front-end of my application to  App Engine using Go. How do I parse the request to a struct in the handler?</p>
  
  <p>Say for example my request is a POST with the request payload</p>
  
  <pre><code>{'Param1':'Value1'}
  </code></pre>
  
  <p>and my struct is</p>
  
  <pre><code>type Message struct {
      Param1 string
    }                                    
  </code></pre>
  
  <p>and the variable</p>
  
  <pre><code>var m Message                               
  </code></pre>
  
  <p>The examples in the app engine documentation use the FormValue function for getting standard request values, and this doesn't seem to work when you use json.</p>
  
  <p>A simple example would be greatly appreciated.</p>