SHARE
TWEET

Untitled

a guest Jun 17th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function jsonIt(json|error myJson)returns json{
  2.     match myJson {
  3.         var error(detail,message) => return {};            
  4.         _ => return {};
  5.     }
  6. }
  7.      
  8. function jsonIt(json|error myJson)returns json{
  9.     match myJson {
  10.         json j  => return j;
  11.         var error(detail,reason) => return {};
  12.     }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top