introduce JSONFormatter

introduce JSONFormatter to simplify RedPenResource