Attempting to replace multiple lines with two characters  },
if the following can be searched and replaced with the above, then the problem would be solved.
The pattern looks like this when encountered:
        },
      ]
    }
  }
}
{
  "query": {
    "bool": {
      "minimum_should_match": 1,
      "should": [
These are the methods I've tried so far
    #using \ and spaces
combinedDSL=$(echo "$initialDSLs"|sed 's/}\
      ]\
    }\
  }\
}\
\
*\
{\
  "query": {\
    "bool": {\
      "minimum_should_match": 1,\
      "should": [\
/},/' )
echo "$combinedDSL"
#using line breaks \n 
combinedDSL2=$(echo "$initialDSLs|"sed N 's/}\n]\n}\n}\n}\n\n*\n{\n"query": {\n"bool": {\n"minimum_should_match": 1,\n"should": [\n/},/')
echo "$combinedDSL2"
here is the full context:
{
  "query": {
    "bool": {
      "minimum_should_match": 1,
      "should": [
    
        {
          "wildcard": {
            "author_place": "*city*"
          }
        },
        
        {
          "wildcard": {
            "meta.title.results": "*state*"
          }
        },
      ]
    }
  }
}
{
  "query": {
    "bool": {
      "minimum_should_match": 1,
      "should": [
    
            {
            "wildcard": {
                "author": "*cat*"
            }
            },
            
            {
            "wildcard": {
                "meta.hashtag.results": "*Monkey*"
            }
}
      ]
    }
  }
}
 
     
    