std.json: ensure objects contain keys
Merge pull request #2186 from Yoplitein/master

std.json: throw exception if a key does not exist