Send Repo.All as json

How do I return Repo.All as json?
I’m trying to get all the Values from the Repo and then send them with all fields as json to the user, how do I do that?

You will need a library like Jason to convert it.