jsonplaceholder icon indicating copy to clipboard operation
jsonplaceholder copied to clipboard

getting an empty array instead of a value

Open ltutar opened this issue 9 years ago • 1 comments

I have the following json file. { "users": [ { "id": 1, "username": "RGershowitz", "motto": "curabitur et magna placerat tellus" }, { "id": 2, "username": "NMuroski", "motto": "ante nullam dolor sit placerat" } ] }

When I request http://192.168.234.23:3000/users/1 , I get {

"id": ​1,
"username": "RGershowitz",
"motto": "curabitur et magna placerat tellus"

}

But when I request http://192.168.234.23:3000/users/1/username , I get { }

I expected RGershowitz as answer instead of {}

ltutar avatar Nov 18 '15 10:11 ltutar

u wot m8 xD

numfin avatar Aug 30 '17 11:08 numfin