Item("") now returns the value itself (can be used to get all keys of specific object).

This commit is contained in:
Jocelyn Fiat
2017-03-30 15:43:07 +02:00
parent a01d161864
commit d61fd85ea6

View File

@@ -148,7 +148,9 @@ feature -- Access
-- `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).
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)
end
end