Skip to content

Commit 7fe8773

Browse files
committed
Update README.md
1 parent 04a0b93 commit 7fe8773

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ target_link_libraries ( json_example jsonfortran-static )
5555
# target_link_libraries ( json_example jsonfortran ) # instead
5656
```
5757

58-
Reading a JSON file
58+
Reading JSON from a file
5959
---------------
6060

6161
Reading a JSON file and getting data from it is fairly
@@ -92,6 +92,13 @@ for more examples.
9292
end program example1
9393
```
9494

95+
Reading JSON from a string
96+
---------------
97+
JSON can also be ready directly from a character string like so:
98+
```fortran
99+
call json%load_from_string('{"name", "Leonidas"}')
100+
```
101+
95102
Modifying variables in a JSON file
96103
---------------
97104

0 commit comments

Comments
 (0)