[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Problem with the Example Response in the JSON Profile
Hi David,It would work. The <Response> element in the XML doesn't add anything to
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?
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 <steven.legg@viewds.com <mailto:steven.legg@viewds.com>> 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]