change the node rest api return to JSON