• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug json_encode XenForo_Phrase return object empty.

Mike

XenForo developer
Staff member
#2
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.
 

Nobita.Kun

Well-known member
#3
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.