假设我们有这个json对象:
{
content: [
{propertyOne: someProperty, propertyTwo: anotherProperty, propertyThree: property,
propertyFour: { subPropertyOne: someSubProperty, subPropertyTwo: anotherSubProperty},
{propertyOne: someProperty, propertyTwo: anotherProperty, propertyThree: property,
propertyFour: { subPropertyOne: someSubProperty, subPropertyTwo: anotherSubProperty},
{propertyOne: someProperty, propertyTwo: anotherProperty, propertyThree: property,
propertyFour: { subPropertyOne: someSubProperty, subPropertyTwo: anotherSubProperty}
]
}
让我们在我的网址中说我可以像这样查询:localhost:port/something?propertyOne=blah
我可以为propertyTwo等做这个。
但它对子属性不起作用。为什么是这样?
我怎么能做这样的事呢
localhost:port/something?subPropertyOne="blah" ??