The above code written in catalog_product_view.xml in module-catalog. For this block, customer info in header after login not loading. In console I'm getting this error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data.
If I comment this block it works well. Any solution for this?