optimize code structure

abstract the interface of entity parser.
add parser interface for normal or json etc.
more thins to do