Skip to content

Commit 322b5c3

Browse files
committed
-updates to readme file.
1 parent c8a832b commit 322b5c3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
json-fortran
22
============
33

4-
Project Name
5-
---------------
6-
7-
Fortran 2003/2008 JSON API
4+
A Fortran 2003/2008 JSON API
85

96
Brief Description
107
---------------
118

12-
A mostly complete API for reading and writing JSON files, written in modern Fortran. The code requires a Fortran compiler that supports various Fortran 2003 and Fortran 2008 features such as: allocatable strings, associate, newunit, generic, class, and abstract interface. I am using the Intel Fortran compiler 13.1.0 on Linux (the Mac and PC versions should also work fine). It does not currently compile with the gnu gfortran compiler.
9+
A mostly-complete API for reading and writing JSON files, written in modern Fortran. The code requires a Fortran compiler that supports various Fortran 2003 and Fortran 2008 features such as: allocatable strings, associate, newunit, generic, class, and abstract interface. I am using the Intel Fortran compiler 13.1.0 on Linux (the Mac and PC versions should also work fine). It does not currently compile with the gnu gfortran compiler.
1310

1411
Reading a JSON file
1512
---------------
@@ -22,7 +19,7 @@ Reading a JSON file and getting data from it is fairly straightforward. Here is
2219

2320
type(json_file) :: json
2421
logical :: found
25-
integer :: ival
22+
integer :: i,j,k
2623

2724
! initialize the module
2825
call json_initialize()
@@ -35,8 +32,9 @@ Reading a JSON file and getting data from it is fairly straightforward. Here is
3532

3633
! extract data from the parsed value
3734
! [found can be used to check if the data was really there]
38-
call json%get('version.major', ival, found)
39-
call json%get('version.minor', ival, found)
35+
call json%get('version.major', i, found)
36+
call json%get('version.minor', j, found)
37+
call json%get('data(1).number', k, found)
4038

4139
! clean up
4240
call json%destroy()
@@ -93,7 +91,7 @@ Writing a json file is slightly more complicated and involves the use of pointer
9391
Other Comments
9492
---------------
9593

96-
This code is a fork and extensive upgrade of the FSON code that can be found at: https://github.com/josephalevin/fson
94+
This code is a fork and extensive upgrade of the FSON code that can be found at: <https://github.com/josephalevin/fson>. It includes many features that the original code did not have, and fixes many of that codes bugs.
9795

9896
More About JSON
9997
------------

0 commit comments

Comments
 (0)