1. Add STONWriter>>#isInJsonMode method which returns true if the STONWriter wants to write JSON
2. Add:
Fraction>>#stonOn: stonWriter
stonWriter isInJsonMode
ifTrue: [ ^ super stonOn: stonWriter ].
stonWriter writeObject: self streamMap: [ :dictionary |
dictionary at: #numerator put: numerator.
dictionary at: #denominator put: denominator ]
3. Add:
ScaledDecimal>>#stonOn: stonWriter
stonWriter isInJsonMode
ifTrue: [ ^ super stonOn: stonWriter ].
stonWriter writeObject: self streamMap: [ :dictionary |
dictionary at: #numerator put: numerator.
dictionary at: #denominator put: denominator.
dictionary at: #scale put: scale ]