Hi, guys

Currently, openwhisk supports return json object only,
I wrote a POEM in openwhisk upstream that allows user to write their own action 
which supports array result. e.g. already implmeneted in my local env for 
python, worked well
```
def main(args):                                                                 
                                                     
   try:                                                                         
                                                   
       name = args.get("name", "World")                                         
                                                   
       place  = args.get("place", "Naver")                                      
                                                    
       return ["a", "b"]                                                        
                                        
   except Exception as e:                                                       
                                                   
       # please handle exception here                                           
                                                   
       # you can return or hide an error message                                
                                                    
       return {"error": str(e)}  
```

So the result will support object and array both in future.
refer to: https://github.com/apache/openwhisk/pull/5244

Welcome to give suggestion



此电子邮件及其包含的信息将仅发送给上面列出的收件人,必须加以保护,并且可能包含法律或其他原因禁止披露的信息。
如果您不是此电子邮件的预期收件人,未经许可,您不得存储、复制、发送、分发或披露它。 禁止存储、复制、发送、分发或披露电子邮件的任何部分。
如果此电子邮件发送不正确,请立即联系 NAVER 
Security(dl_naversecur...@navercorp.com)。然后删除所有原件、副本和附件。谢谢您的合作。
​
This email and the information contained in this email are intended solely for 
the recipient(s) addressed above and may contain information that is 
confidential and/or privileged or whose disclosure is prohibited by law or 
other reasons.
If you are not the intended recipient of this email, please be advised that any 
unauthorized storage, duplication, dissemination, distribution or disclosure of 
all or part of this email is strictly prohibited.
If you received this email in error, please immediately contact NAVER Security 
(dl_naversecur...@navercorp.com) and delete this email and any copies and 
attachments from your system. Thank you for your cooperation.​

Reply via email to