Signature
StringList DValue::keys() const
Parameters
return value : child keys for map/list values; empty for scalars
Returns the keys produced by each(). Scalar values have no child key, so the result is empty. List-shaped values return their numeric keys as strings.
Example
DValue user; user["name"] = "Ada"; user["role"] = "admin"; print(join(user.keys().sort(), ","), "\n");
Output
name,role