Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transmit JSON data to Django website

I'm transmitting a application/json in java with a HttpPost to a server which use Django.

I am performing the transmission as described here: JSON POST request parsing in PHP

How can I create a page that receive this json data ?

like image 658
Martin Trigaux Avatar asked Mar 08 '26 23:03

Martin Trigaux


1 Answers

You can receive json through request.raw_post_data

data=simplejson.loads( request.raw_post_data )
like image 177
czarchaic Avatar answered Mar 10 '26 12:03

czarchaic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!