title: How can I remove proxies field in symfony json
body: <p>I want to remove proxies fields like <code>__initializer__: null,__cloner__: null, __isInitialized__: true,</code> from my returned json but I have no idea.</p>
  
  <p>I dont want to use <code>* @Serializer\Exclude()</code> because there are some more fields next to those fields.</p>
  
  <p>here is a sample json:</p>
  
  <pre><code>emails: [
      {
          id: 1,
          subject: "Mrs. Astrid Wuckert",
          body: "Excepturi.",
          sendCopy: false,
          roles: [
              {
                  __initializer__: null,
                  __cloner__: null,
                  __isInitialized__: true,
                  name: "ROLE_ADMIN"
              },
              {
                  name: "ROLE_RESELLER"
              },
              {
                  name: "ROLE_RETAILER"
              },
              {
                  name: "ROLE_CLUB_SHOP"
              }
          ]
      },
  ]
  </code></pre>
  
  <p>Thanks in advance.</p>