Я не нашел учебник по использованию lokijs в самоизображении с таблицами данных
Я вижу, что с datatables мы можем загрузить базу данных json, но у меня нет позиции по интеграции lokijs
видя, что возвращаемый JSON не тот же самый, это возможно ??
это код классического вызова для таблиц данных
var request = $.ajax({
url: 'Objet.json',
dataSrc: '',
cache: false,
data: form_data,
dataType: 'json',
contentType: 'application/json; charset=utf-8',
type: 'get'
мой файл loki json, который должен возвращать поля для отображения в таблицах данных
{"filename":"Objet.json","collections":[{"name":"candidats","data":[{"name":"candidat_","meta":{"revision":0,"created":1542030381403,"version":0},"$loki":1},{"name":"nom","Candidature":"candidature","Poste":"poste","service":"service","Entrée_le":"24/11/2018","Diplome":"bts","Entretien_le":"26/11/2018","commentaire":"balablablabn","etat":"en attante","Retour":"non","meta":{"revision":0,"created":1542030610837,"version":0},"$loki":2},{"id":"1","nom":"Tiger Nixon","Candidature":"spontanée","Poste":"Collaborateur junior","service":"Service Audit & Révision","Entrée_le":"24/11/2018","Diplome":"bts","Entretien_le":"26/11/2018","commentaire":"balablablabn","etat":"candidat validé","Retour":"BL","meta":{"revision":0,"created":1542030799683,"version":0},"$loki":3},{"id":"1","nom":"Tiger Nixon","Candidature":"spontanée","Poste":"Collaborateur junior","service":"Service Audit & Révision","Entrée_le":"24/11/2018","Diplome":"bts","Entretien_le":"26/11/2018","commentaire":"balablablabn","etat":"candidat validé","Retour":"BL","meta":{"revision":0,"created":1542030949992,"version":0},"$loki":4},{"id":"1","nom":"Tiger Nixon","Candidature":"spontanée","Poste":"Collaborateur junior","service":"Service Audit & Révision","Entrée_le":"24/11/2018","Diplome":"bts","Entretien_le":"26/11/2018","commentaire":"balablablabn","etat":"candidat validé","Retour":"BL","meta":{"revision":0,"created":1542031503824,"version":0},"$loki":5}],"idIndex":[1,2,3,4,5],"binaryIndices":{},"constraints":null,"uniqueNames":[],"transforms":{},"objType":"candidats","dirty":false,"cachedIndex":null,"cachedBinaryIndex":null,"cachedData":null,"adaptiveBinaryIndices":true,"transactional":false,"cloneObjects":false,"cloneMethod":"parse-stringify","asyncListeners":false,"disableMeta":false,"disableChangesApi":true,"disableDeltaChangesApi":true,"autoupdate":false,"serializableIndices":true,"ttl":null,"maxId":5,"DynamicViews":[],"events":{"insert":[],"update":[],"pre-insert":[],"pre-update":[],"close":[],"flushbuffer":[],"error":[],"delete":[null],"warning":[null]},"changes":[]}],"databaseVersion":1.5,"engineVersion":1.5,"autosave":false,"autosaveInterval":5000,"autosaveHandle":null,"throttledSaves":true,"options":{"serializationMethod":"normal","destructureDelimiter":"$<\n"},"persistenceMethod":"fs","persistenceAdapter":null,"verbose":false,"events":{"init":[null],"loaded":[],"flushChanges":[],"close":[],"changes":[],"warning":[]},"ENV":"NODEJS"}
У меня проблемы с интеграцией моего файла json или формат моего объектаc не совпадает
спасибо за вашу помощь