Better JSON handling for Stanford code.