eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JSONTypeEncoder::STXTypeEncoder':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: STXTypeEncoder (private in JSONTypeEncoder

This class is only visible from within JSONTypeEncoder.

Inheritance:

   Object
   |
   +--JSONTypeEncoder
      |
      +--JSONTypeEncoder::STXTypeEncoder

Package:
stx:goodies/communication
Category:
Net-Communication-JSON
Owner:
JSONTypeEncoder

Description:


I encode/decode objects as a composite,
consisting of @type and @value, where @type is the object's class name.
I can reconstruct most (non-recursive) objects.


Class protocol:

queries
o  typeInfoFormat


Instance protocol:

accessing
o  typeSlotName
to overwrite the slotName which provides the type information
(if not set, defaults to @__type__)

o  valueSlotName
to overwrite the slotName which provides the instance information
(if not set, defaults to @__value__)

o  valueSlotName: aString
to overwrite the slotName which provides the instance information
(if not set, defaults to @__value__)

protocol
o  decodeDictionary: aDictionaryObject
this one expects a single object
containing @__type__ and @__value__.

o  encode: anObject indent: indent on: aStream using: actionForStandardEncoding



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:34:08 GMT