Add basic implementations of core classes as_json