在URL中查询更深入的json对象

时间:2014-08-01 10:08:46

标签: json

假设我们有这个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" ??

0 个答案:

没有答案