add lambda support to expect_json_types