if (input.charAt(index.intValue()) == '}'){
// This should be the last character, if not, we have extraneous stuff - and, because
// we trimmed the string at the beginning of the process, we know that there's not
// just whitespace there.
if ( (input.length()-1) != index.intValue()){
// ERROR extraneous stuff
ResultException ex = new ResultException();
ex.addError("Extraneous characters after object.");
throw(ex);
}