Problem with Params converter to Json + ld

I have front matter with this format and will pass to json+ld:

recipe_instructions: [
{
@type’: ‘HowToStep’,
‘text’: ‘Preheat oven to 350 degrees F (175 degrees C).\n’
},
{
@type’: ‘HowToStep’,
‘text’: ‘Sprinkle chicken breasts with salt and pepper to taste, and place in a lightly greased 9x13 inch baking dish. In a small bowl, combine the honey, mustard, basil, paprika, and parsley. Mix well. Pour 1/2 of this mixture over the chicken, and brush to cover.\n’
},
{
@type’: ‘HowToStep’, ‘text’: ‘Bake in the preheated oven for 30 minutes. Turn chicken pieces over and brush with the remaining 1/2 of the honey mustard mixture. Bake for an additional 10 to 15 minutes, or until chicken is no longer pink and juices run clear. Let cool 10 minutes before serving.\n’
}]

after run with

hugo server

my json ld become :

recipeInstructions”:
“[map[@type:HowToStep
text:Preheat oven to 350 degrees F (175 degrees C).\n]
map[@type:HowToStep
text:Sprinkle chicken breasts with salt and pepper to taste, and place in a lightly greased 9x13 inch baking dish. In a small bowl, combine the honey, mustard, basil, paprika, and parsley. Mix well. Pour 1/2 of this mixture over the chicken, and brush to cover.\n]
map[@type:HowToStep
text:Bake in the preheated oven for 30 minutes. Turn chicken pieces over and brush with the remaining 1/2 of the honey mustard mixture. Bake for an additional 10 to 15 minutes, or until chicken is no longer pink and juices run clear. Let cool 10 minutes before serving.\n]]”

How i can i cast the front matter so it can’t change when i use {{ .Params.recipe_instructions . }}

Your layout file does not treat the JSON properly. The map part is an indicator that something in wrong in the layout file. Please post the layout file where receipe_instructions is used.

This is my schema

<script type="application/ld+json">

    {
        "@context": "https://schema.org/",
        "@type": "Recipe",
        "name": "{{ .Title }}",
        "headline": "{{ .Title }}",
        "image": "{{ .Params.photo | absURL }}",
        "description": "{{ .Title }}",
        "keywords": "{{ .Title }}",
        "recipeCuisine": "United Kingdom",
        "prepTime": "{{ .Params.Prep_time }}",
        "cookTime": "PT55M",
        "recipeYield": "1",
        "recipeCategory": "Lunch",
        "datePublished": "2020-11-23",
        "author": {
            "@type": "Person",
            "name": "{{ .Params.Author }}"
        },
        "aggregateRating": {
            "@type": "AggregateRating",
            "ratingValue": "3.7",
            "reviewCount": "7"
        },
        "nutrition": {
            "@type": "NutritionInformation",
            "calories": "133 calories"
        },
        "recipeIngredient": "{{ .Params.Recipe_ingredient }}",
        "recipeInstructions": "{{ .Params.recipe_instructions }}"

    } 
    
</script>