json-server icon indicating copy to clipboard operation
json-server copied to clipboard

Weird behaviour when property "period" is in json mock data

Open blackat opened this issue 1 year ago • 0 comments

Hello, I am using json-server 0.17.4 and I have setup some mock data like this one:

[
  {
    "symbol": "AAPL",
    "date": "2023-09-30",
    "period": "FY"
  }
]

and when I hit the corresponding url to test the return of mock data I get an empty array.

If I remove the property "period" everything works as expected.

Is period a reserved word in some way?

blackat avatar Feb 25 '24 08:02 blackat