Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Fortran
  3. json-fortran

json-fortran

NOASSERTIONFortran9.3.1

A user-friendly, thread-safe, and object-oriented API for reading and writing JSON files in modern Fortran.

Visit WebsiteGitHubGitHub
377 stars95 forks0 contributors

What is json-fortran?

JSON-Fortran is a modern Fortran library that provides a full-featured API for reading and writing JSON files. It solves the problem of integrating JSON data interchange into Fortran applications, allowing them to parse configuration files, export results, or communicate with web services using this ubiquitous format.

Target Audience

Fortran developers working in scientific computing, engineering simulations, or legacy codebases who need to handle JSON data for configuration, output, or interoperability with other systems.

Value Proposition

Developers choose JSON-Fortran because it offers a thread-safe, object-oriented API designed specifically for modern Fortran, with broad compiler support and multiple build options, making it the most robust and user-friendly JSON library available for the Fortran ecosystem.

Overview

A Modern Fortran JSON API

Use Cases

Best For

  • Parsing JSON configuration files in Fortran-based scientific applications
  • Exporting numerical simulation results to JSON format for visualization or analysis
  • Integrating Fortran codes with web APIs that communicate via JSON
  • Reading JSON data from external sources into Fortran data structures
  • Creating JSON output logs or reports from high-performance computing (HPC) simulations
  • Modernizing legacy Fortran programs to support JSON data interchange

Not Ideal For

  • Legacy Fortran projects using compilers older than gfortran 4.9 or Intel Fortran 13.1.0
  • Applications requiring real-time, high-throughput JSON parsing where C/C++ libraries might offer better performance
  • Teams needing advanced JSON features like built-in schema validation or JSONPath queries
  • Projects where JSON handling is minimal and could be handled by simpler, ad-hoc parsing without library dependencies

Pros & Cons

Pros

Intuitive Object-Oriented API

Provides a clean, modern interface for reading and writing JSON, making it easier to integrate into Fortran code compared to lower-level approaches, as highlighted in the README's emphasis on usability.

Thread-Safe Design

Ensures safe concurrent access, which is crucial for multi-threaded scientific applications, a feature explicitly noted in the project's key strengths.

Wide Compiler Support

Compatible with major Fortran compilers like Intel, GNU gfortran 4.9+, and NAG, covering most modern development environments, as detailed in the building instructions.

Flexible Build Systems

Supports multiple build tools including CMake, FoBiS, Visual Studio, and FPM, allowing seamless integration into diverse project workflows, evidenced by the extensive build options documented.

Cons

Modern Compiler Requirement

Relies on Fortran 2003/2008 features, which excludes projects stuck with older compilers that lack these capabilities, limiting backward compatibility.

Build Complexity

While multiple build systems are offered, setting up with tools like FoBiS or CMake can be non-trivial for developers unfamiliar with these systems, adding initial overhead.

Limited Advanced Features

Focuses on core JSON parsing and generation without built-in support for more complex operations like schema validation or JSONPath, which might require additional workarounds.

Frequently Asked Questions

Quick Stats

Stars377
Forks95
Contributors0
Open Issues19
Last commit22 hours ago
CreatedSince 2014

Tags

#scientific-computing#json-generator#cmake#data-interchange#thread-safe#fortran#json#json-parser

Built With

v
visual-studio
F
Fortran
C
CMake

Links & Resources

Website

Included in

JSON1.5kFortran405
Auto-fetched 22 hours ago

Related Projects

JSON for Modern C++JSON for Modern C++

JSON for Modern C++

Stars49,889
Forks7,410
Last commit1 day ago
FastjsonFastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

Stars25,637
Forks6,416
Last commit1 year ago
GsonGson

A Java serialization/deserialization library to convert Java Objects into JSON and back

Stars24,204
Forks4,437
Last commit4 days ago
simdjsonsimdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

Stars23,825
Forks1,258
Last commit1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub