1. 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.

Discussion in 'Resolved Bug Reports' started by Nobita.Kun, Mar 17, 2016.

  1. Nobita.Kun

    Nobita.Kun Well-Known Member

    As the title. When i try to json_encode the XenForo_Phrase object. And it is return the empty object.
     
  2. Mike

    Mike XenForo Developer Staff Member

    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.
     
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    Ok thanks. I know that you will mark this thread as designed for some reasons. Any way. Thank for the information.
     

Share This Page