V
V
vetsinen2018-03-27 19:17:45
symfony
vetsinen, 2018-03-27 19:17:45

How can I pass Entity objects to json in symfony 3?

Good afternoon, I'm trying to return records from the database as json from simophny 3, but I can't find any working method to convert Doctrine objects to json at the output, although in other frameworks this is usually given as a standard function. Tell me, please, is it possible to do this in symfony 3?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bears, 2018-03-27
@bears

symfony.com/doc/current/serializer.html
symfony.com/doc/3.4/components/serializer.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question