Item12516: Cannot serialise blessed data

pencil
Priority: Urgent
Current State: Closed
Released In: n/a
Target Release:
Applies To: Extension
Component: JsonRpcContrib
Branches: trunk master
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
JSON requires use of the convert_blessed method to convert blessed data during serialisation. This calls a TO_JSON method in the class which can simply convert it to a simple hash.

Put convert_blessed into the serialisation call for responses (I can't see for the life of my why it isn't the default, but it isn't frown, sad smile )

Also, preparatory to pulling this into core (should we go that way for configure) then add TIDY.

-- CrawfordCurrie - 30 May 2013

released in v2.10

-- MichaelDaum - 30 May 2013
 
Topic revision: r8 - 23 Sep 2014, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy