|
|
|
|
|
by golergka
2070 days ago
|
|
> XYZ’s protocol is not just based on JSON, but it’s based on a particular technique known as polymorphic JSON. In this, a single field could have a different data type in different circumstances. For example, the resources field can be an array when requesting a single access token, or it can be an object when requesting multiple named access tokens. The difference in type indicates a difference in processing from the server. Within the resources array, each element can be either an object, representing a rich resource request description, or a string, representing a resource handle (scope). This is horrible. |
|
Obviously it's doable in Java, but I'm hard-pressed to imagine a Java developer would think of such a thing.