How to alter JSON string during insertion (example link)

How to alter JSON string during insertion (example link)

dizzydesdizzydes Posts: 5Questions: 3Answers: 0

Is there any way for me to alter the string here with "ADD STRING" as its going into the table, what's the correct notation if so?

In my real use-case there's a ton of examples but I don't want to loop through prior. The real manipulation that's required is creating an <img> html tag around an id because when I try to put the whole thing through datatables/json heavily escapes the image URL within the tag.

THanks :)

Answers

  • dizzydesdizzydes Posts: 5Questions: 3Answers: 0
    edited August 2019
    /%22https:////m.yea.com//images//I//51kORfFik7L.jpg/%22//
    

    This is an example of what's happening to the URL, don't know if anyones seen it before?

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @dizzydes ,

    You can use columns.render to do that.

    Cheers,

    Colin

This discussion has been closed.