* prepare to support several json parsers. Currently only jsx is supported.
* removed warnings and useless code.