Feature #54092

Respect implementation of JsonSerializable Interface

Added by Carsten Bleicker over 1 year ago. Updated 8 months ago.

Status:Resolved Start date:2013-11-29
Priority:Should have Due date:
Assigned To:- % Done:

0%

Category:MVC
Target version:TYPO3 Flow Base Distribution - 2.x
PHP Version: Complexity:
Has patch:No

Description

If an object implements JsonSerializable interface it should be respected in JsonView.

Associated revisions

Revision 78efef80
Added by Carsten Bleicker 8 months ago

[FEATURE] Respect implementation of JsonSerializable interface

The JsonView will call jsonSerialize() in transformValue()
for objects implementing the JsonSerializable interface. This is useful
if a domain model or data transfer object needs custom serialization
logic for JSON.

The implementation also works in PHP 5.3 where the JsonSerializable
interface is not yet present and will be ignored.

Change-Id: I77936ed284c55d0549b71b3739b76491bbdd9bb6
Releases: master, 2.3
Resolves: #54092

Revision ab32c306
Added by Carsten Bleicker 8 months ago

[FEATURE] Respect implementation of JsonSerializable interface

The JsonView will call jsonSerialize() in transformValue()
for objects implementing the JsonSerializable interface. This is useful
if a domain model or data transfer object needs custom serialization
logic for JSON.

Change-Id: I77936ed284c55d0549b71b3739b76491bbdd9bb6
Releases: master, 2.3
Resolves: #54092

History

#1 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/25766

#2 Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/25766

#3 Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/25766

#4 Updated by Gerrit Code Review about 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/25766

#5 Updated by Gerrit Code Review about 1 year ago

Patch set 5 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at https://review.typo3.org/25766

#6 Updated by Gerrit Code Review 8 months ago

Patch set 6 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/25766

#7 Updated by Gerrit Code Review 8 months ago

Patch set 7 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/25766

#8 Updated by Gerrit Code Review 8 months ago

Patch set 8 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/25766

#9 Updated by Gerrit Code Review 8 months ago

Patch set 1 for branch 2.3 of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/34624

#10 Updated by Gerrit Code Review 8 months ago

Patch set 9 for branch master of project Packages/TYPO3.Flow has been pushed to the review server.
It is available at http://review.typo3.org/25766

#11 Updated by Karsten Dambekalns 8 months ago

  • Status changed from Under Review to Resolved
  • Target version set to 2.x

Also available in: Atom PDF