refine the http url handler match. refine json encode