- implements encode json of post request \n- implements crypt flag that enable/disable encoding/decoding