Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.1] Document Controller#json() helper #6425

Copy link
Copy link
Closed
@wouterj

Description

@wouterj
Issue body actions

Thanks to @mcfedr, Symfony 3.1 comes with a sweet little Controller#json() helper to create a JsonResponse using the Symfony serializer (or just using the plain values). As we slowly start to show more and more how to use Symfony as an API server, I think it's worth documenting this method (especially in the Controller book chapter).

Refs symfony/symfony#17642

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionableClear and specific issues ready for anyone to take them.Clear and specific issues ready for anyone to take them.good first issueIdeal for your first contribution! (some Symfony experience may be required)Ideal for your first contribution! (some Symfony experience may be required)hasPRA Pull Request has already been submitted for this issue.A Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.