/JSONExtensions

Adds OrderedJsonObject on top of the JSON package

Primary LanguageSmalltalkMIT LicenseMIT

JSONExtensions

Adds OrderedJsonObject on top of the JSON package

A JsonObject is a dictionary-like object that uses DNU to save you from adding getters and setters to set values at keys preserving order.

Meant to model pure state preserving the order in which that state was set.

Usage

state := OrderedJsonObject new
	has: 'a value';
	stored: 42;
	yourself.

state has
 "'a value'"

state stored
 "42"

Install

 Metacello new
   repository: 'github://sebastianconcept/JSONExtensions';
   baseline: 'JSONExtensions';
   load.