AJAX JSON Error!
AJAX JSON Error!
gdluckyzhang
Posts: 1Questions: 0Answers: 0
Hi, I use the following:
<!-- Jackson JSON Mapper -->
org.codehaus.jackson
jackson-mapper-asl
1.6.4
to parse the java.util.List into the JSON data, the result is:
[{"sid":null,"cid":null,"nick":"nick-1","bulletin":"bulletin-1","picPath":null,"taobaoCreatedDatetime":null,"taobaoModifiedDatetime":null,"scoreItem":null,"scoreService":null,"scoreDelivery":null,"title":null,"disabled":null,"createDatetime":null,"createUser":null,"updateDatetime":null,"updateUser":null,"description":null,"id":null},{"sid":null,"cid":null,"nick":"nick-21","bulletin":"bulletin-21","picPath":null,"taobaoCreatedDatetime":null,"taobaoModifiedDatetime":null,"scoreItem":null,"scoreService":null,"scoreDelivery":null,"title":null,"disabled":null,"createDatetime":null,"createUser":null,"updateDatetime":null,"updateUser":null,"description":null,"id":null}]
I found it's formater seems different with the sample(DataTables-1.7.6\examples\data_sources\ajax.html, DataTables-1.7.6\examples\examples_support\json_source.txt). So, I'm very afraid can my result can load by AJAX into DataTable? And, anybody can tell me the DataTable's JSON specification?
thx!
<!-- Jackson JSON Mapper -->
org.codehaus.jackson
jackson-mapper-asl
1.6.4
to parse the java.util.List into the JSON data, the result is:
[{"sid":null,"cid":null,"nick":"nick-1","bulletin":"bulletin-1","picPath":null,"taobaoCreatedDatetime":null,"taobaoModifiedDatetime":null,"scoreItem":null,"scoreService":null,"scoreDelivery":null,"title":null,"disabled":null,"createDatetime":null,"createUser":null,"updateDatetime":null,"updateUser":null,"description":null,"id":null},{"sid":null,"cid":null,"nick":"nick-21","bulletin":"bulletin-21","picPath":null,"taobaoCreatedDatetime":null,"taobaoModifiedDatetime":null,"scoreItem":null,"scoreService":null,"scoreDelivery":null,"title":null,"disabled":null,"createDatetime":null,"createUser":null,"updateDatetime":null,"updateUser":null,"description":null,"id":null}]
I found it's formater seems different with the sample(DataTables-1.7.6\examples\data_sources\ajax.html, DataTables-1.7.6\examples\examples_support\json_source.txt). So, I'm very afraid can my result can load by AJAX into DataTable? And, anybody can tell me the DataTable's JSON specification?
thx!
This discussion has been closed.