Replaced datum_t([cJSON]) constructors with datum_from_json function, removing init_json and moving json logic out of datum_t.