add json file type
add inline helper; refactor parse
complete file refactor