Return self.full_name as an object that can be serialized to json.

Property definitions

nitc :: json_model $ MEntity :: json_namespace
	# Return `self.full_name` as an object that can be serialized to json.
	fun json_namespace: JsonNamespace is abstract
src/doc/templates/json_model.nit:62,2--63,46

nitc :: json_model $ MClass :: json_namespace
	redef fun json_namespace do
		var ns = new JsonNamespace
		ns.add_all intro_mmodule.ns_for(visibility)
		ns.add "::"
		ns.add to_json_ref
		return ns
	end
src/doc/templates/json_model.nit:158,2--164,4

nitc :: json_model $ MPackage :: json_namespace
	redef fun json_namespace do
		var ns = new JsonNamespace
		ns.add to_json_ref
		return ns
	end
src/doc/templates/json_model.nit:111,2--115,4

nitc :: json_model $ MGroup :: json_namespace
	redef fun json_namespace do
		var ns = new JsonNamespace
		if parent != null then
			ns.prepend parent.as(not null).json_namespace
		end
		ns.add to_json_ref
		ns.add ">"
		return ns
	end
src/doc/templates/json_model.nit:119,2--127,4

nitc :: json_model $ MModule :: json_namespace
	redef fun json_namespace do
		var ns = new JsonNamespace
		if mgroup != null then
			ns.add_all mgroup.as(not null).mpackage.json_namespace
			ns.add "::"
		end
		ns.add to_json_ref
		return ns
	end
src/doc/templates/json_model.nit:131,2--139,4