Search code examples
phpjsonsymfonysymfony2-easyadmin

How to fill entity by uploading json file in symfony easyadmin bundle


i have an entity called User, and instead of filling the entity manually in easyadmin, i want to upload json file to fill the form automatically with available data,


Solution

  • Have you looked at the Serializer Component? This can serialize and deserialize entities to and from JSON amongst other formats.

    https://symfony.com/doc/current/components/serializer.html