added :json-kw format and fixed bugs