You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Json-server Team,
I have used the json-server@1.0.0-alpha.23 and there is a bug when accessing an INT value,
the actual bug is
it shows int as a string
(I have used npx json-server -p 3500 -w LuffyCrew.json)
My actual json data : { "luffyCrew": [ { "id": 1, "title": "Luffy's Dream", "dateTime": "2024-01-27T12:00:00", "body": "Luffy dreams of becoming the Pirate King and finding the legendary One Piece. His crew supports him in this grand adventure." }] }
Here,
It needs to show the {"id":1} Instead it shows as {"id":"1"}
this bug is not in the json-server@0.17.3
The text was updated successfully, but these errors were encountered:
Thanks Team,
I removed the OBJECT "id" from the json and ran it, looks like the json-server automatically created an OBJECT id and gave a string value for it. NICE
Hi Json-server Team,
I have used the json-server@1.0.0-alpha.23 and there is a bug when accessing an INT value,
the actual bug is
it shows int as a string
(I have used
npx json-server -p 3500 -w LuffyCrew.json
)My actual json data :
{ "luffyCrew": [ { "id": 1, "title": "Luffy's Dream", "dateTime": "2024-01-27T12:00:00", "body": "Luffy dreams of becoming the Pirate King and finding the legendary One Piece. His crew supports him in this grand adventure." }] }
Here,
It needs to show the
{"id":1}
Instead it shows as{"id":"1"}
this bug is not in the json-server@0.17.3
The text was updated successfully, but these errors were encountered: