Json multiline parsing

Json multiline parsing

karthik007karthik007 Posts: 2Questions: 0Answers: 0
edited June 2013 in DataTables 1.9
Well i am using the datatable plugin.I read data from a txt where data is present which is suitable jSon format.But i need to make the data suitable for jSon read even when the data is seaparated by /n..what should i do??

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like you need to escape the new line characters. However, it doesn't sound like it has anything to do with DataTables, unless I'm mistaken? DataTables will read any valid JSON source.

    Allan
  • karthik007karthik007 Posts: 2Questions: 0Answers: 0
    Well i am using the plugin.And yes i have to escape new line characters.I am stuck.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    So the JSON source is invalid is it? In which case, I can't really help since I don't know anything about your JSON data source. You'd need to post a link to a test page showing the program and the source you are using. However, it sounds like this is outside the scope of DataTables. You might have better luck asking on SO.

    Allan
This discussion has been closed.