func extractOutput(output string) []byte {
	finder := "{"
	lengthOfFinder := len(finder)
	indexOf := strings.Index(output, finder)
	var finalContent string
	if indexOf != -1 {
		// If found get content
		indexOf += lengthOfFinder
		end := "Ini"
		if strings.Contains(output[indexOf:], end) {
			y := strings.Index(output[indexOf:], end)
			//10 is the number of the left bytes, while extracting the content of output
			//it's a dirty workaround to avoid error while preforming Unmarshal of finalContent
			finalContent = output[indexOf : indexOf+y-10]
		} else {
			finalContent = output[indexOf:]
		}
	} else {
		// If not content after empty.
		finalContent = ""
	}
	res := []byte(finalContent)
	out := []byte(`{`)
	out = append(out, res...)

	return out
}
//extractOutput return the content of output
extractOutput return the content of output
// extractOutput return the content of output
func extractOutput(output string) []byte {
	finder := "{"
	lengthOfFinder := len(finder)
	indexOf := strings.Index(output, finder)
	var finalContent string
	if indexOf != -1 {
		indexOf += lengthOfFinder
		end := "Ini"
		if strings.Contains(output[indexOf:], end) {
			y := strings.Index(output[indexOf:], end)
			finalContent = output[indexOf : indexOf+y-10]
		} else {
			finalContent = output[indexOf:]
		}
	} else {
		finalContent = ""
	}
	res := []byte(finalContent)
	out := []byte(`{`)
	out = append(out, res...)
	return out
}
func extractOutput ( output string ) [ ] byte { finder := " " lengthOfFinder := len ( finder ) indexOf := strings . Index ( output , finder ) var finalContent string if indexOf != - 1 { indexOf += lengthOfFinder end := " " if strings . Contains ( output [ indexOf : ] , end ) { y := strings . Index ( output [ indexOf : ] , end ) finalContent = output [ indexOf : indexOf + y - 10 ] } else { finalContent = output [ indexOf : ] } } else { finalContent = " " } res := [ ] byte ( finalContent ) out := [ ] byte ( `{` ) out = append ( out , res ... ) return out }
extractOutput return the content of output
extractOutput return the content of output
// If found get content //10 is the number of the left bytes, while extracting the content of output //it's a dirty workaround to avoid error while preforming Unmarshal of finalContent // If not content after empty.