Issue 829 - JSON dose not support Pluf_Model (pluf)

0 views
Skip to first unread message

no-r...@ceondo.com

unread,
Dec 16, 2012, 2:37:17 PM12/16/12
to pluf-u...@googlegroups.com
Hello,

A new issue has been created and assigned
to you:

829 - JSON dose not support Pluf_Model
Project: Pluf Framework
Status: New
Reported by: مصطفی برمشوری
Labels:
Priority:Medium
Type:Defect

Description:

I was working to encode Pluf Model but faced with exception.
Steps to reproduce the problem:
1. create new Model
2. load date from data base
3. encode to json

Expected result:

PlufErrorHandlerException making GET request to /api/user/
2 : json_encode(): type is unsupported, encoded as null
PHP /srv/www/pluf/src/Pluf/HTTP/Response/Json.php, line 34

--
Issue: http://projects.ceondo.com/p/pluf/issues/829/


no-r...@ceondo.com

unread,
Dec 16, 2012, 3:12:18 PM12/16/12
to pluf-u...@googlegroups.com
Hello,

The following issue has been updated:

829 - JSON dose not support Pluf_Model
Project: Pluf Framework
Status: New
Reported by: مصطفی برمشوری
URL: http://projects.ceondo.com/p/pluf/issues/829/
Labels:
Priority:Medium
Type:Defect

Comments (last first):

# By مصطفی برمشوری, Dec 16, 2012:

JSON serialization could solve the problem! cold not it?
http://php.net/manual/en/class.jsonserializable.php

# By مصطفی برمشوری, Dec 16, 2012:
Reply all
Reply to author
Forward
0 new messages