
Eiffel.framework.serialization.api_json_deserializer.mustache Maven / Gradle / Ivy
{{>noteinfo}}
expanded class
API_JSON_DESERIALIZER
feature -- Access
from_json (a_val:STRING; a_type: TYPE [detachable ANY] ): detachable ANY
-- Deserialize a 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 - 2025 Weber Informatics LLC | Privacy Policy