MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / mapToJSON

Function mapToJSON

src/toolchain.go:231–239  ·  view source on GitHub ↗

JSON

(tmpMap interface{})

Source from the content-addressed store, hash-verified

229
230// JSON
231func mapToJSON(tmpMap interface{}) string {
232
233 jsonString, err := json.MarshalIndent(tmpMap, "", " ")
234 if err != nil {
235 return "{}"
236 }
237
238 return string(jsonString)
239}
240
241func jsonToMap(content string) map[string]interface{} {
242

Callers 15

createXEPGDatabaseFunction · 0.70
mappingFunction · 0.70
createXMLTVFileFunction · 0.70
cleanupXEPGFunction · 0.70
getStreamByChannelIDFunction · 0.70
getLineupFunction · 0.70
buildM3UFunction · 0.70
updateServerSettingsFunction · 0.70
saveFilterFunction · 0.70
saveXEpgMappingFunction · 0.70
saveWizardFunction · 0.70
createFilterRulesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected