ADDED: json support
ADDED: from_json constructor to Curve class