Reading and writing JSON files
JavaScript Object Notation (JSON) files are a common way of serializing data. It was proposed by Douglas Crockford and is described in the RFC 7159 standard. In particular, they are good at storing complex data structures such as dictionaries. Many languages have strong libraries for JSON support. It is very common to store your program data in JSON files. It is a good format in which to save files and the like. It is also commonly used for storing input data for various simulation programs. It is far more human-readable and -writable than XML and has largely replaced it in some uses. For example, it has largely replaced XML in asynchronous browser/server communication. We will look into several libraries that you ...
Get Scientific Computing with Scala now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.