comment saving
[scpubgit/Commentry.git] / lib / App / Commentry / Comment.pm
index 3670da8..18d2fe2 100644 (file)
@@ -5,4 +5,6 @@ use Moo;
 has title => (is => 'ro', required => 1);
 has body => (is => 'ro', required => 1);
 
+sub TO_JSON { +{ %{$_[0]} } }
+
 1;