Not a bug json_encode XenForo_Phrase return object empty.

truonglv

Well-known member
Licensed customer
As the title. When i try to json_encode the XenForo_Phrase object. And it is return the empty object.
 
If you have arbitrary objects, you need to consider using a method that will convert them for JSON if needed. (We do not currently support JsonSerializable.) As an example, XenForo_ViewRenderer_Json::jsonEncodeForOutput.
 
If you have arbitrary objects, you need to consider using a method that will convert them for JSON if needed. (We do not currently support JsonSerializable.) As an example, XenForo_ViewRenderer_Json::jsonEncodeForOutput.
Ok thanks. I know that you will mark this thread as designed for some reasons. Any way. Thank for the information.
 
Back
Top Bottom