Serialize messages as JSON
Dump data as JSON and writes it to path.
# File lib/maildir/serializer/json.rb, line 18 def dump(data, path) super(data.to_json, path) end
Read data from path and parse it as JSON.
# File lib/maildir/serializer/json.rb, line 13 def load(path) ::JSON.load(super(path)) end