Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jsonl parser javascript

function jsonlParser(jsonl) {
  return jsonl
    .split("
")
    .filter(function (s) { return s !== ""; })
    .map(function (str) { return JSON.parse(str); });
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #jsonl #parser #javascript
ADD COMMENT
Topic
Name
3+3 =