MarshalJSON abstracts the underlying json lib used
(v interface{})
| 40 | |
| 41 | // MarshalJSON abstracts the underlying json lib used |
| 42 | func MarshalJSON(v interface{}) ([]byte, error) { |
| 43 | if JSONImpl != nil && JSONImpl.GetManagerOptions()["jsonImpl"] != "std" { |
| 44 | return JSONImpl.Marshal(v) |
| 45 | } |
| 46 | return json.Marshal(v) |
| 47 | } |
| 48 | |
| 49 | func registerCustomJSONEncoders() { |
| 50 | // adding all the custom encoders that bleve has implemented, |
no test coverage detected