You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Reading JSON from a file](#reading-json-from-a-file)
15
-
-[Reading JSON from a string](#reading-json-from-a-string)
16
-
-[Modifying variables in a JSON file](#modifying-variables-in-a-json-file)
17
-
-[Writing a JSON file](#writing-a-json-file)
18
-
-[Building a JSON file from scratch](#building-a-json-file-from-scratch)
19
-
-[Documentation](#documentation)
20
-
-[Contributing [](CONTRIBUTING.md)](#contributing-ready-in-backloghttpsbadgewaffleiojacobwilliamsjson-fortranpnglabelreadytitlereadycontributingmd)
21
-
-[License](#license)
22
-
-[Miscellaneous](#miscellaneous)
9
+
-[Status](#status)
10
+
-[Brief description](#brief-description)
11
+
-[Download](#download-)
12
+
-[Building the library](#building-the-library)
13
+
-[Reading JSON from a file](#reading-json-from-a-file)
14
+
-[Reading JSON from a string](#reading-json-from-a-string)
15
+
-[Modifying variables in a JSON file](#modifying-variables-in-a-json-file)
16
+
-[Writing a JSON file](#writing-a-json-file)
17
+
-[Building a JSON file from scratch](#building-a-json-file-from-scratch)
A user-friendly and object-oriented API for reading and writing JSON files, written in
41
41
modern Fortran. The source code is a single Fortran module file ([json_module.F90](https://github.com/jacobwilliams/json-fortran/blob/master/src/json_module.F90)).
Download the official versioned releases [here](https://github.com/jacobwilliams/json-fortran/releases/latest). Or, get the latest development code from the master branch [here](https://github.com/jacobwilliams/json-fortran.git).
47
48
49
+
[top](#json-fortran-)
48
50
Building the library
49
51
--------------------
50
52
@@ -86,7 +88,7 @@ cmake_minimum_required ( VERSION 2.8.8 FATAL_ERROR )
@@ -140,6 +143,7 @@ for more examples. The source files may be found in `src/tests/`.
140
143
end program example1
141
144
```
142
145
146
+
[top](#json-fortran-)
143
147
Reading JSON from a string
144
148
---------------
145
149
JSON can also be read directly from a character string like so:
@@ -159,6 +163,7 @@ After reading a JSON file, if you want to change the values of some of the varia
159
163
call json%update('version.patch',0,found) !change patch to 0
160
164
```
161
165
166
+
[top](#json-fortran-)
162
167
Writing a JSON file
163
168
---------------
164
169
@@ -169,6 +174,7 @@ To print the JSON file (either to a file or the console), the `print_file` metho
169
174
call json%print_file(iunit) !prints to the file connected to iunit
170
175
```
171
176
177
+
[top](#json-fortran-)
172
178
Building a JSON file from scratch
173
179
---------------
174
180
@@ -244,19 +250,23 @@ The code above produces the file:
244
250
}
245
251
```
246
252
253
+
[top](#json-fortran-)
247
254
Documentation
248
255
--------------
249
256
250
257
The API documentation for the latest release version can be found [here](http://jacobwilliams.github.io/json-fortran). The documentation can also be generated by processing the source files with [RoboDoc](http://rfsber.home.xs4all.nl/Robo/). Note that both the shell script, CMake, and SCons will also generate these files automatically in the documentation folder, assuming you have RoboDoc installed.
251
258
259
+
[top](#json-fortran-)
252
260
Contributing [](CONTRIBUTING.md)
253
261
------------
254
262
Want to help? Take a quick look at our [contributing guidelines](CONTRIBUTING.md) then claim something in [the "ready" column on our Waffle.io](https://waffle.io/jacobwilliams/json-fortran) and [Fork. Commit. Pull request.](https://help.github.com/articles/fork-a-repo).
255
263
264
+
[top](#json-fortran-)
256
265
License
257
266
--------
258
267
The json-fortran source code and related files and documentation are distributed under a permissive free software license (BSD-style). See the [LICENSE](https://raw.githubusercontent.com/jacobwilliams/json-fortran/master/LICENSE) file for more details.
259
268
269
+
[top](#json-fortran-)
260
270
Miscellaneous
261
271
---------------
262
272
@@ -265,3 +275,5 @@ Miscellaneous
265
275
*[json-fortran on Travis CI](https://travis-ci.org/jacobwilliams/json-fortran)
266
276
*[json-fortran on Waffle.IO](https://waffle.io/jacobwilliams/json-fortran)
267
277
*[json-fortran on Coveralls.IO](https://coveralls.io/r/jacobwilliams/json-fortran)
0 commit comments