Pricing Blog

Json-ld structued data issue

  • fss21.-1364941469223354388

    fss21

    3 months ago

    I am trying to set up json-ld strtucted data and insert <script> tag as attached image. I pulled out json to be inserted as string format from external api and tyring to add it to "content". but when i do that, it becomes null in preview page. Does anybody know why?

    I have passed value as string format and tried Json parsing formula but same results( it returns null)
    1364941469613293639-image.png
  • erikbeus-1364946010446762084

    Erik Beuschau

    3 months ago

    Is it a static string? In that case I suppose it wouldn't need to be a formula?
  • fss21.-1364949986449817600

    fss21

    3 months ago

    it is dynamic value so i am getting differnt value by api depending on the parameter
  • erikbeus-1364950169430261804

    Erik Beuschau

    3 months ago

    Ah okay. Did you try console logging it to verify your formula/logic works?
  • fss21.-1364950476541395036

    fss21

    3 months ago

    hmmm not yet but there is no logic in formula

    I am just binding value from api directly
    1364950476243865712-image.png
  • and output looks like this
    1364950566400299028-image.png
  • but in html, it looks null
  • 1364950717563146260-image.png
  • i cleared cache too
  • erikbeus-1364951473833906207

    Erik Beuschau

    3 months ago

    Does your API run during SSR?
  • fss21.-1364951716339908670

    fss21

    3 months ago

    yep
  • erikbeus-1364951811961913436

    Erik Beuschau

    3 months ago

    Could you share a url with me so I can investigate?
  • fss21.-1364954441039745087

    fss21

    3 months ago

    sure let me dm you