Hi,
Thanks for this great library.
I'm trying to use your library for converting TAP files and have the result as JSON. I did read all the documentation and put a small example together which is converting my files, however can't find anyway to convert the whole object into JSON so it can be stored in Mongo (Or any other database). Is there anyway to convert the result to JSON?
Below is my sample code (nodeJS):
var asn1 = require("asn1js");
var fs = require("fs");
var data = fs.readFileSync("/myTAPFile");
//console.log(data);
var obj = asn1.fromBER(data.buffer);
console.log(obj); // this is successfully logging the converted structure
//console.log(obj.result);
@ashkank83 Common way JSON.stringify on asn1.result object. Read JS documents on JSON object and apply additional filters in order to make output smaller.
Hi, Thanks for this great library. I'm trying to use your library for converting TAP files and have the result as JSON. I did read all the documentation and put a small example together which is converting my files, however can't find anyway to convert the whole object into JSON so it can be stored in Mongo (Or any other database). Is there anyway to convert the result to JSON? Below is my sample code (nodeJS):
result of console.log above