Skip to content

Commit 2f6fe82

Browse files
committed
added some new APIs.
1 parent b6fba4d commit 2f6fe82

File tree

2 files changed

+317
-37
lines changed

2 files changed

+317
-37
lines changed

src/json_example.f90

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,19 @@ subroutine test_1()
601601
write(*,'(A)') ''
602602
write(*,'(A)') 'printing the modified structure...'
603603
call json%print_file()
604+
605+
write(*,'(A)') ''
606+
write(*,'(A)') ' Test replacing data from the json structure:'
607+
608+
call json%get('data(1)', p)
609+
call json_value_update(p,'name','Cuthbert',found)
610+
611+
!call json%get('data(2)', p)
612+
!call json_value_update(p,'real',[1.0_wp, 2.0_wp, 3.0_wp],found) !........ ??? .......
613+
614+
write(*,'(A)') ''
615+
write(*,'(A)') 'printing the modified structure...'
616+
call json%print_file()
604617

605618
end if
606619

0 commit comments

Comments
 (0)