title: JSON array to table Sonata admin bundle
body: <p>I am trying to load a json array into sonata, this should happen when i have th edit form (Only in the edit / view form)</p>
  
  <p>The reason is that i have to be able to view applications, this is the code i have so far</p>
  
  <pre><code>class ApplicationUserAdmin extends Admin
  {
  
      public $supportsPreviewMode = false;
      protected $security;
  
      public function getNewInstance()
      {
          $instance = parent::getNewInstance();
          return $instance;
      }
  
      // Fields to be shown on create/edit forms
      protected function configureFormFields(FormMapper $formMapper)
      {
  
          $transformer = new JsonArrayToTableTransformer();
  
          $formMapper
              -&gt;add('application', 'entity', array('class' =&gt; 'MaximModuleApplicationBundle:Application'))
              -&gt;add('denied', 'checkbox', array('label' =&gt; 'Denied', 'required' =&gt; false))
              -&gt;add($formMapper-&gt;create('details', 'json')
                  -&gt;addViewTransformer($transformer))
          ;
      }
  
      // Fields to be shown on filter forms
      protected function configureDatagridFilters(DatagridMapper $datagridMapper)
      {
          $datagridMapper
              -&gt;add('application')
              -&gt;add('denied')
          ;
      }
  
      // Fields to be shown on lists
      protected function configureListFields(ListMapper $listMapper)
      {
          $listMapper
              -&gt;addIdentifier('id')
              -&gt;add('user')
              -&gt;add('application')
              -&gt;add('date')
              -&gt;add('denied')
          ;
      }
  
      protected function configureSideMenu(MenuItemInterface $menu, $action, AdminInterface $childAdmin = null)
      {
          if (!$childAdmin &amp;&amp; !in_array($action, array('edit'))) {
              return;
          }
  
          $admin = $this-&gt;isChild() ? $this-&gt;getParent() : $this;
          $id = $admin-&gt;getRequest()-&gt;get('id');
  
          $menu-&gt;addChild(
              'view',
              array('uri' =&gt; $admin-&gt;generateUrl('edit', array('id' =&gt; $id)))
          );
  
          $menu-&gt;addChild(
              'replies',
              array('uri' =&gt; $admin-&gt;generateUrl('sonata.admin.module.application.replies.list', array('id' =&gt; $id)))
          );
      }
  
      public function setSecurityContext(SecurityContext $security)
      {
          $this-&gt;security = $security;
      }
  } 
  </code></pre>
  
  <p>A small concept of what i am trying to get:
  <img src="https://i.stack.imgur.com/KsvUz.png" alt="Image"></p>