private final JSONAttributes attributes = new JSONAttributes();
@Override
public void parse(InputSource input) throws IOException, SAXException {
try {
CharStream charStream;
InputStream inputStream = null;
if(null != input.getByteStream()) {
charStream = new ANTLRInputStream(input.getByteStream());
} else if (null != input.getCharacterStream()){
charStream = new ANTLRReaderStream(input.getCharacterStream());