Options for receiving stringified json

Options for receiving stringified json

crunchfactorycrunchfactory Posts: 29Questions: 8Answers: 2

Hi! I'm receiving severely stringified json to display in datatables:

\\\\\\"dddCode\\\\\\\":\\\\\\\"123456\\\\\\\",\\\\n    \\\\\\\

etc...

Can I do something about this on the client end (what are my options?) and display in DT? I really don't want to do anything on client side, but this may have to be the fix short-term.. Any examples to go from?

Thank you!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Wowzer! You can use ajax.dataSrc as a function to decode the string (three or four times I guess!) and then pass back the data to the DataTable for it to render.

    Allan

  • crunchfactorycrunchfactory Posts: 29Questions: 8Answers: 2

    I know, right???? Yikes! We actually found (and ruthlessly murdered) the culprit on the backslash mission, so THANK GOD we don't have to deal with it client-side... You know I'll be back with more questions! lol!

This discussion has been closed.