eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JSONTypeEncoder::STXTypeEncoder2':

Home

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

Class: STXTypeEncoder2 (private in JSONTypeEncoder

This class is only visible from within JSONTypeEncoder.

Inheritance:

   Object
   |
   +--JSONTypeEncoder
      |
      +--JSONTypeEncoder::STXTypeEncoder2

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

Description:


I encode/decode objects as a composite,
consisting of @type followed by slot values, 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__)

protocol
o  decodeDictionary: aDictionaryObject
this one expects a slot containing @__type__

o  encodeSlotsOfObject: anObject skipNil: skipNil indent: indent on: aStream
(comment from inherited method)
(printer prettyPrint and:[first not]) ifTrue:[stream cr; spaces:indent].



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 03:02:16 GMT