Json Formatting error

Json Formatting error

harivigneshharivignesh Posts: 13Questions: 0Answers: 0
edited November 2012 in DataTables 1.8
i have two tables to be displayed in my page. i render data using json. for one table i hard code data and for the other i pass through function.
both are in same format but i get the formatting error

Replies

  • girishmrgirishmr Posts: 137Questions: 0Answers: 0
    Have you validated your JSON in JSONLint?
  • harivigneshharivignesh Posts: 13Questions: 0Answers: 0
    yes

    i says it is a valid json.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    You are going to have to give us a whole lot more information than that for us to stand a chance go being able to help.

    As the 'New Discussion' instructions state, please post a link, or at the very least a debugger trace.

    Allan
  • harivigneshharivignesh Posts: 13Questions: 0Answers: 0
    ok.

    can you help me in comparing two datatables and finding the differences between the two?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    As in the data in them? Use fnGetData on each table and do an array diff.
  • harivigneshharivignesh Posts: 13Questions: 0Answers: 0
    Thanks for the quick reply.
    i am not using the data table as a control. i read the data form database and store it in a datatable. how can i compare it with another?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    If you aren't using DataTables, then this isn't an appropriate place to ask your question as it is a forum specifically for DataTables. I'd suggest asking somewhere like StackOverflow for generic Javascript questions.

    Allan
  • harivigneshharivignesh Posts: 13Questions: 0Answers: 0
    ok
This discussion has been closed.