Json parsing error syntax error unexpected end of input
Try the Node http
request and obey to the data event.
Data event only keep the data into a buffer temporarily, and so a complete JSON available is difficult. To solve this dataevent must be appended to a variable. Have a glance at (http://nodejs.org/api/http.html).