Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

JsonResponse should implement JsonSerializable #4

Open
Rican7 opened this issue Jan 15, 2014 · 0 comments
Open

JsonResponse should implement JsonSerializable #4

Rican7 opened this issue Jan 15, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@Rican7
Copy link
Owner

Rican7 commented Jan 15, 2014

The Paulus\Response\JsonResponse should implement the newly available (since PHP 5.4) JsonSerializable class.

I'm thinking that instead of encoding the body every time new data is set on the JsonResponse class to instead have some sort of preparation before sending based on whether the class implements the JsonSerializable interface or not. Maybe some sort of middleware layer? Not sure.

@ghost ghost assigned Rican7 Jan 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant