- if mentity.mdoc != null then
- node["mdoc"] = new JsonArray.from(mentity.mdoc.content)
- node["mdoc_location"] = mentity.mdoc.location.to_s
+ if not mentity isa MSignature then
+ #FIXME: MSignature is a MEntity, but has no model :/
+ node["location"] = mentity.location.to_s
+ end
+ var mdoc = mentity.mdoc
+ if mdoc != null then
+ node["mdoc"] = new JsonArray.from(mdoc.content)
+ node["mdoc_location"] = mdoc.location.to_s