Make objects serialisable in calls to jason_encode()
remove as_json methods in favbour of native object json serialisation