title: Symfony Rest Api, form without name for Android
body: <p>I have a RestApi with Symfony2 and a form for create a new account.</p>
  
  <p>I'm using this API for an Android application and i have a problem.</p>
  
  <p>If i name my form, for example <code>my_project_form_account</code>, symfony wait a POST variable named <code>my_project_form_account[my_field]</code>.</p>
  
  <p>But on Android, i can't use <code>[]</code>, so, my solution, i have remove the name of my form, and now i can just send <code>my_field</code>.</p>
  
  <p>But now, i have a form without name, and i don't like it..</p>
  
  <p>Do you have a solution for me ? If i name my form, is there a way to not send <code>my_project_form_account[my_field]</code> ?</p>
  
  <p>In Symfony, i retrieve POSt with : </p>
  
  <pre><code>        $jsonData = json_decode($request-&gt;getContent(), true);
          $form-&gt;bind($jsonData);
  </code></pre>