std.json: ensure objects contain keys