Comparison of REST API response for Node.js