I am looking for a more elegant solution to add a translation in the code then a case of if solution.
So this is what I made now, but I can’t seem to get it to display the result:
{% assign test_array= '{ "name": "test name", "object": "test object"}' | json_parse %}
{{ test_array[name] }}
When I just add {{ test_array}} I do get the content in the front-end
{ "name": "test name", "object": "test object"}
Does someone know what part is wrong here?