(bytes []byte)
| 73 | } |
| 74 | |
| 75 | func parseJSON(bytes []byte) (map[string]interface{}, error) { |
| 76 | stringMap := map[string]interface{}{} |
| 77 | err := json.Unmarshal(bytes, &stringMap) |
| 78 | if err != nil { |
| 79 | return nil, fmt.Errorf("Incorrect json format: %s", err.Error()) |
| 80 | } |
| 81 | |
| 82 | return stringMap, nil |
| 83 | } |
no test coverage detected