save json encoded result