Added to_json() initial version