I added the JSON-LD code to my site but search bar did not appear. What is the reason for this? am i doing something wrong?
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://www.example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.example.com/search?term={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>