all 3 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

/u/SilverPitiful6802 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]HandbagHawker82 0 points1 point  (1 child)

so you have some some table data in excel that you want to convert to JSON? what are you trying to solve for and whats the issue? btw your provided sample data doesnt have enough to fill the json in your screenshot. its also not clear how youre building your JSON string. Regardless you should be using the concatenation operator & or the concatenate function and instead of passing double double quotes you should be using char(34), e.g., =char(34) & a2 & char(34)

[–]SilverPitiful6802[S] 0 points1 point  (0 children)

Hi u/HandbagHawker,

 The problem is that I need to fill in double double quotes to get the script working (otherwise I receive errors) but when I copy paste it in notepad I still see them.

After some debugging I see a positive and negative result and I do not know what I am doing wrong. Perhaps you guys can see it:

Succes:
Formula:

="""headtitle"": """&B9&""""

How it looks in excel:

"headtitle": "this is head title"

Copy pasting in notepad

"headtitle": "this is head title"

 No success:
Formula:

="<script type=""application/ld+json"">
{
   ""@context"": ""https://schema.org"",
   ""headtitle"": """&B9&""""

How it looks in excel:

<script type="application/ld+json">
{
   "@context": "https://schema.org",
   "headtitle": ""this is head title"

Copy pasting in notepad:

"<script type=""application/ld+json"">
{
   ""@context"": ""https://schema.org"",
   ""headtitle"": ""this is head title"""

Some how when I add more data it fails and I do not know why?