Could any one help to push JSON data of my application to splunk using splunk api. (Instead of using splunk forwarder I am trying to push data in splunk server using splunk API )
You would find it easier to use http event collector instead of the API if your data is in JSON and you are in python.
Yep or this!
See if this previous answer helps you:
This shows how to send your own cooked data via TCP
Otherwise, you'll need to write to a file and then oneshot it via the api: