Get this value as a Map[String, JsonValue]

require: self.is_map

Property definitions

json $ JsonValue :: to_map
	# Get this value as a `Map[String, JsonValue]`
	#
	# require: `self.is_map`
	fun to_map: Map[String, JsonValue] do
		var value = value
		assert value isa MapRead[String, nullable Object]

		var map = new HashMap[String, JsonValue]
		for k, v in value do map[k] = new JsonValue(v)
		return map
	end
lib/json/dynamic.nit:179,2--189,4