Skip to content Skip to sidebar Skip to footer

Trying To Post Json Data From Python To Php

I have modified http://fivefilters.org/term-extraction/ this project so that: Given input (https://gist.github.com/4426264) of text the python script term-extraction.py outputs key

Solution 1:

Seems that self.response.out.write function returns None. I think on line 69 you should have:

mydata = json.dumps({'json': list}, indent=0)

Solution 2:

Am not familiar with python, but trying to help.

Are you sure that you have converted the 'json data' as a 'string' before sending it to php? Try to pass hard-coded strings ({'name':'Alex'}) and see whats happening on php end.

Post a Comment for "Trying To Post Json Data From Python To Php"