Helper function to convert map to JSON string
(data map[string]string)
| 631 | |
| 632 | // Helper function to convert map to JSON string |
| 633 | func toJSON(data map[string]string) string { |
| 634 | jsonBytes, _ := json.Marshal(data) |
| 635 | return string(jsonBytes) |
| 636 | } |