Json URL中的大于和小于运算符
大家好,我有一个db.json文件,我在其中运行 格式如下:Json URL中的大于和小于运算符,json,url,operators,Json,Url,Operators,大家好,我有一个db.json文件,我在其中运行 格式如下: [ { "Symbol": "AAPL", "prodType": "STK", "Market": "Symbol Industries Inc", "Country": "US", "Quantity": 10, "NominalValue": 123.45, "AvgPrice": 131.16, "PositionCost": 123.87, "Las
[
{
"Symbol": "AAPL",
"prodType": "STK",
"Market": "Symbol Industries Inc",
"Country": "US",
"Quantity": 10,
"NominalValue": 123.45,
"AvgPrice": 131.16,
"PositionCost": 123.87,
"LastPrice": 123.567,
"PositionValue": 145.78,
"TotalValue": 123.347,
"PortfolioPercentage": 12,
"ProfitLoss": 1235.09,
"Results": "12 Dec, 2017",
"Dividend": "29 Apr, 2017"
},
{
"Symbol": "fsdfsd",
"prodType": "DER",
"Market": "Symbol Industries Inc",
"Country": "Greece",
"Quantity": 10,
"NominalValue": 123.45,
"AvgPrice": 131.16,
"PositionCost": 123.87,
"LastPrice": 123.567,
"PositionValue": 145.78,
"TotalValue": 123.347,
"PortfolioPercentage": 12,
"ProfitLoss": 1235.09,
"Results": "12 Dec, 2017",
"Dividend": "29 Apr, 2017"
}
]
例如,我想对URL进行查询,以获得总值大于100但小于130的记录,但我不能。我使用不同的方法,但没有人能正常工作。我如何在这个URL中实现这样一个查询?我使用了不同的方法,你能至少显示其中一种吗?当然,首先我使用了ot运算符:{“lt”:100,“gt”:150},