How to post json content using restapi.

using httppost method