Remove warnings
Added first to_json method to my own classes