fix json-c mem free and aptimize config hints