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.
What next?
- Visualise faster web applications through streaming
- Browse code examples
- Learn the Oboe.js API
- Download the library
- Discuss Oboe.js
- Compare Oboe.js vs. SAX vs. DOM
- Visit the project on Github
- If you’re in for the long haul, my MSc dissertation was written on this subject (PDF, 64 pages plus appendices)
Other tools
- For writing JSON streams from a Java server to an Oboe.js front-end try GSON
- If you need an even more lightweight JSON stream library and don’t mind writing rather more code, try Clarinet (In fact, Oboe is built on Clarinet)
- For golang programmers there is an example of different realtime web technologies, which uses Oboe.js