All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Eiffel.framework.serialization.api_json_deserializer.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
{{>noteinfo}}

expanded class
	API_JSON_DESERIALIZER


feature -- Access

	from_json (a_val:STRING; a_type: TYPE [detachable ANY] ): detachable ANY
			-- Deserialize a json representation `a_val' to an object
			-- of type `a_type'
		local
			conv_from: JSON_BASIC_REFLECTOR_DESERIALIZER
			ctx_deser: detachable JSON_DESERIALIZER_CONTEXT
		do
			create conv_from
			create ctx_deser
			ctx_deser.set_default_deserializer (create {JSON_BASIC_REFLECTOR_DESERIALIZER})
			Result := conv_from.from_json_string (a_val, ctx_deser, a_type)
		end

end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy