Commits

Ivan Inozemtsev  committed 2acbeda

added toMap slot

  • Participants
  • Parent commits 1b6b582

Comments (0)

Files changed (1)

File fan/Json.fan

 
 
   abstract Void each(|Str, Obj?| fn)
+  
+  virtual Str:Obj? toMap() 
+  {
+    result := [Str:Obj?][:]
+    each |v, k| { result[k] = v }
+    return result
+    
+  }
 
   **
   ** Remove fields from an object JSON by condition given