add option for getting post data from json formatted file