Item("") now returns the value itself (can be used to get all keys of specific object).
This commit is contained in:
@@ -148,7 +148,9 @@ feature -- Access
|
|||||||
-- `k' can be a single name such as "foo",
|
-- `k' can be a single name such as "foo",
|
||||||
-- or a qualified name such as "foo.bar" (assuming that "foo" is associated with a JSON object).
|
-- or a qualified name such as "foo.bar" (assuming that "foo" is associated with a JSON object).
|
||||||
do
|
do
|
||||||
if attached json_value as obj then
|
if k.is_empty then
|
||||||
|
Result := json_value
|
||||||
|
elseif attached json_value as obj then
|
||||||
Result := object_json_value (obj, k.to_string_32)
|
Result := object_json_value (obj, k.to_string_32)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user