Hi,
I have an HTTP action and its output is not a JSON array, only nested objects as far as I can tell. Here's the schema I generated from the HTTP output payload via the "Parse JSON" action:
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"status": {
"type": "string"
},
"title": {
"type": "string"
},
"space": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"properties": {
"webui": {
"type": "string"
},
"self": {
"type": "string"
}
}
},
"_expandable": {
"type": "object",
"properties": {
"metadata": {
"type": "string"
},
"icon": {
"type": "string"
},
"description": {
"type": "string"
},
"homepage": {
"type": "string"
}
}
}
}
},
"version": {
"type": "object",
"properties": {
"by": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"username": {
"type": "string"
},
"userKey": {
"type": "string"
},
"profilePicture": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"isDefault": {
"type": "boolean"
}
}
},
"displayName": {
"type": "string"
},
"_links": {
"type": "object",
"properties": {
"self": {
"type": "string"
}
}
},
"_expandable": {
"type": "object",
"properties": {
"status": {
"type": "string"
}
}
}
}
},
"when": {
"type": "string"
},
"message": {
"type": "string"
},
"number": {
"type": "integer"
},
"minorEdit": {
"type": "boolean"
},
"hidden": {
"type": "boolean"
},
"_links": {
"type": "object",
"properties": {
"self": {
"type": "string"
}
}
},
"_expandable": {
"type": "object",
"properties": {
"content": {
"type": "string"
}
}
}
}
},
"container": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"_links": {
"type": "object",
"properties": {
"webui": {
"type": "string"
},
"self": {
"type": "string"
}
}
},
"_expandable": {
"type": "object",
"properties": {
"metadata": {
"type": "string"
},
"icon": {
"type": "string"
},
"description": {
"type": "string"
},
"homepage": {
"type": "string"
}
}
}
}
},
"body": {
"type": "object",
"properties": {
"view": {
"type": "object",
"properties": {
"value": {
"type": "string"
},
"representation": {
"type": "string"
},
"_expandable": {
"type": "object",
"properties": {
"webresource": {
"type": "string"
},
"content": {
"type": "string"
}
}
}
}
},
"_expandable": {
"type": "object",
"properties": {
"editor": {
"type": "string"
},
"export_view": {
"type": "string"
},
"styled_view": {
"type": "string"
},
"storage": {
"type": "string"
},
"anonymous_export_view": {
"type": "string"
}
}
}
}
},
"extensions": {
"type": "object",
"properties": {
"position": {
"type": "string"
}
}
},
"_links": {
"type": "object",
"properties": {
"webui": {
"type": "string"
},
"edit": {
"type": "string"
},
"tinyui": {
"type": "string"
},
"collection": {
"type": "string"
},
"base": {
"type": "string"
},
"context": {
"type": "string"
},
"self": {
"type": "string"
}
}
},
"_expandable": {
"type": "object",
"properties": {
"metadata": {
"type": "string"
},
"operations": {
"type": "string"
},
"children": {
"type": "string"
},
"restrictions": {
"type": "string"
},
"history": {
"type": "string"
},
"ancestors": {
"type": "string"
},
"descendants": {
"type": "string"
}
}
}
}
}I would like to be able to further process this data with actions such as "Select" and "Create HTML Table". But unfortunately, in the respective follow-up action I don't get any dynamic properties to choose from. Normally, this would be the case if "Parse JSON" had a JSON array to start out with.
If Iin the follow-up action I try to set the expression "body('Parse_JSON) I get the error message: "BadRequest. The 'from' property value in the 'select' action inputs is of type 'Object'. The value must be an array."
So clearly there's no way to continue if I don't get the JSON object to become an array somehow. I also tried to alter the schema and set every "type: "object" to noit use a type, i.e. "{} - didn't help either.
Can anybody help me out here?
Thanks a lot!