title: Symfony2.8. How to get data from post request
body: <p>How can I receive data from POST request in my controller?
  I don't use twig.</p>
  
  <pre><code>public function newAction(Request $request)
  {
     //when I use
     $content = $request-&gt;getContent();
     // as result I see "string" with need field and value. It's not json
     // array
     // value like
     /* 
        string '------WebKitFormBoundaryI12ukQBs3HdmPjvh
        Content-Disposition: form-data; name="title"
  
        "valuefortitle"
        ------WebKitFormBoundaryI12ukQBs3HdmPjvh
        Content-Disposition: form-data; name="name"
  
        "supername"
        ------WebKitFormBoundaryI12ukQBs3HdmPjvh--
        ' (length=253)
        */
  }
  </code></pre>
  
  <p>Or how can I serialize(convert) Post data to object or array</p>
  
  <p>I send request using Postman with header "Content-Type: application/json".</p>
  
  <p>And can you show me how to save file(image)?</p>