Questions tagged [oboe.js]

Streaming JSON loading for Node and browsers

Oboe.js is an open source Javascript library for loading JSON using streaming, combining the convenience of DOM with the speed and fluidity of SAX.

It can parse any JSON as a stream, is small enough to be a micro-library, doesn’t have dependencies, and doesn’t care which other libraries you need it to speak to.

We can load trees larger than the available memory. Or we can instantiate a classical OOP models from JSON, or completely transform your JSON while it is being read.

32 questions
6
votes
1 answer

AngularJS and big JSON data

For a custom AngularJS application that uses data from an API I've been creating I've come across the use of Angular oboe. Oboe is a bower package that helps streaming large JSON files to the view. So after some trial and error, I've managed to…
Deathstorm
  • 713
  • 9
  • 32
5
votes
1 answer

Unhandled promise rejection in asynchronous promises

I am using Oboe.js to parse a really really large JSON file const promises = []; oboe('http://domain/my-file.js') .node('items.*', item => { // parseItem() returns a rejected Promise because of invalid JSON items …
LongFlick
  • 1,110
  • 1
  • 11
  • 19
3
votes
0 answers

Is there oboe.js alternative for angular 7?

I have other question here How to send stream of json object to the client?, but luckily I found a solution using oboe.js. I wonder if there is a any features on angular like oboe have? I tried HttpRequest then enabling the reportProgress but it…
zer09
  • 1,090
  • 1
  • 19
  • 33
3
votes
1 answer

oboejs : Nothing happens after JSON response

JS: function OrderFormController($scope, $http) { $scope.sampleJSON = []; $scope.sampleJSONDuplicates = []; oboe('/getPMDResultsByDateAndSeverity') .done(function(data) { $scope.sampleJSON.push(data.pmdStructureWrapper); …
Nagendra Singh
  • 507
  • 6
  • 20
2
votes
1 answer

Oboe.js, Promises, and Jest

I'm using Oboe.js, oboe-promise (wraps oboe calls in a promise), and Jest. I'm probably doing something stupid. Any suggestions? Thanks. My code "use strict"; const oboe = require('oboe-promise') const { Readable } = require('stream') class…
Davout1806
  • 21
  • 2
2
votes
0 answers

How to send form data in post request using oboe.js?

When I try it it throws 500 error and it looks like there is problem with it's request body. It might be problem with configuration in oboe libraries but I haven't changed anything since installation. asyncMethod(fileToUpload, selectedDate) { const…
2
votes
2 answers

How to iterate over array of objects using oboe?

I have a json response in the form of: [{ "id": 425055, "title": "Foo" }, { "id": 425038, "title": "Bar" }, { "id": 425015, "title": "Narf" }] I use oboe.js to create a highland stream: const cruiseNidStream = _((push, next) => { …
k0pernikus
  • 41,137
  • 49
  • 170
  • 286
2
votes
1 answer

when to use $destroy

I have a get request in angular that returns a streaming response. The request is made through the oboe library. The streaming response basically returns json values and my angular front end adds each of these streams to the scope on receiving each…
Adnan
  • 544
  • 13
  • 26
2
votes
1 answer

How can I read a stream of JSON objects into browser

Given a node.js style object stream as the example below shows, how can this be read by an http request on a webpage and processed: {"id":"one", "value":"the first object"} {"id":"two", "value":"the second object"} {"id":"three", "value":"the…
Fergie
  • 4,643
  • 5
  • 34
  • 40
2
votes
0 answers

PUT on Tab Close Doesn't Complete

On close of a browser tab, I'm attempting to do an automatic save of the user's changes. I have verified this works at other points in the timeline; the same function is used. I call it in the unload handler: $( window ).unload(function() { …
Scotty H
  • 5,646
  • 3
  • 27
  • 78
1
vote
2 answers

Checking for undefined in if statements, leading to uncaught errors because item in if is undefined. What to do?

I see there are not many oboe tags used on SO, but please help if you can, this is more of a general javascript question about handing uncaught errors for undefined. Thanks!~ I am using Oboe.js to stream data to webpage from a MongoDB atlas…
Paul W
  • 63
  • 6
1
vote
1 answer

Using JWT authentication with Oboe,js

I'm still a noob at web development and attempting to implement JWT authentication for web application that consists of an HTML page with JavaScript. It retrieves data by firing WebAPI endpoints via Oboe.js. I have already managed to successfully…
1
vote
2 answers

How to make typescript stream reading code not to proceed before stream is ended?

This is more general question but I just couldn't write it in more general way so I had to use the example I'm dealing with. Anyway I looked into async+await, but it seems that Promise with resolve arrow function cannot be used with this example.…
char m
  • 6,390
  • 14
  • 58
  • 96
1
vote
1 answer

How to solve CORS error consuming an API using oboe in Angular2 app?

I have API that returns data like…
char m
  • 6,390
  • 14
  • 58
  • 96
1
vote
0 answers

Oboe for partial JSON?

In my use-case, I am continuously appending JSON objects to a file from an external application and then reading and parsing the JSON updates with NodeJS, which will send updates to the web browser for a D3 visualization. The Oboe website is well…
Shawn
  • 335
  • 1
  • 11
1
2 3