json-server get request does not work code example Example 1: json server npm npm install -g json-server Example 2: json server npm json-server --watch db.json