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.