Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Interoperability: C and Fortran #429

Closed
nyckmaia opened this issue Aug 16, 2019 · 2 comments
Closed

JSON Interoperability: C and Fortran #429

nyckmaia opened this issue Aug 16, 2019 · 2 comments
Labels

Comments

@nyckmaia
Copy link

Is there any way to use C / Fortran Interoperability (bind C) to send a JSON document from a C application to Fortran subroutine?

@jacobwilliams
Copy link
Owner

Yes, that's possible. You'd need some wrapper code, similar to what I show here: http://degenerateconic.com/fortran-json-python/ (see c_ptr_to_json).

@jacobwilliams
Copy link
Owner

Note: I also have in mind one day to write a C API for JSON-Fortran so you can call it directly from C. But I haven't done any work on that. There is a ticket: #371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants