// we should use fieldParser here (some new version as the old one probably won't work)
// enable IssueJsonParserTest#testParseIssueWithUserPickerCustomFieldFilledOut after fixing this
final Object value = json.opt(key);
res.add(new IssueField(key, namesMap.get(key), typesMap.get("key"), value != JSONObject.NULL ? value : null));
} catch (final Exception e) {
throw new JSONException("Error while parsing [" + key + "] field: " + e.getMessage()) {
@Override
public Throwable getCause() {
return e;
}
};