← Prev in month ← Prev in thread

Re: Problem with the Example Response in the JSON Profile

From
David Brossard <>
Date
2013-05-16T09:20:00+00:00
ID
CABSq=
Thread
Re: Problem with the Example Response in the JSON Profile
I'm removing the Response / Result nesting. It's unnecessary.

Also, as you suggest, we can do away w/ Request and Response and make them the root "unnamed" element in JSON - this makes it lighter.

Any objection from anyone?

On Tue, May 14, 2013 at 2:40 AM, Steven Legg <> wrote:

Hi David,

On 11/05/2013 8:32 AM, David Brossard wrote:

So the right example would be:

{

     "Response": {

“Result” : [{

         "Decision": "Permit"

     "Status":{

        "StatusCode":{

           "Value" : "http://foo.bar"

        }

    }

       }]

     }

}

I am thinking that there is one depth level too many. We could simply rewrite:

{

     "Response": [{

         "Decision": "Permit"

     "Status":{

        "StatusCode":{

           "Value" : "http://foo.bar"

        }

    }

       }]

}

whereby the response is an array of Result objects. I believe this works. What do you think?

It would work. The <Response> element in the XML doesn't add anything to

the result array. The only reason for keeping the extra level is for

consistency with the XML Schema.

You have a choice between the name "Response" or "Result" for the array.

It depends on which element you think you are suppressing. I'm inclined to

use "Result" for the array name since we have an unbounded list of them,

but there is only supposed to be one "Response".

If you do away with "Response", then you could equally well do away with

"Request" on the request side and have the members of the "Request" object

be members of the outermost JSON object.

Regards,

Steven

On Mon, Mar 4, 2013 at 1:04 AM, Steven Legg < <mailto:>> wrote:

    Hi David,

    The example Response object in section 5.2.4.1 should contain a Result

    object that contains the Decision and Status. The Result object is

    missing.

    Regards,

    Steven

--

David Brossard, M.Eng, SCEA, CSTP

Product Manager

+46(0)760 25 85 75

Axiomatics AB

Skeppsbron 40

S-111 30 Stockholm, Sweden

http://www.linkedin.com/companies/536082

http://www.axiomatics.com

http://twitter.com/axiomatics

-- 
David Brossard, M.Eng, SCEA, CSTP
Product Manager
+46(0)760 25 85 75
Axiomatics AB
Skeppsbron 40

S-111 30 Stockholm, Sweden
http://www.linkedin.com/companies/536082
http://www.axiomatics.com

http://twitter.com/axiomatics
← Prev in month ← Prev in thread