EIRAM
atomic and molecular data in form of polynomial fits
Functions/Subroutines
json Module Reference

Functions/Subroutines

character(size(arr)*(itol+9)+2) function, public eiram_json_getarrayasjson (arr, length, itol)
 Return a JSON array string (ie. "[…]") with the elements of the given array arr. More...
 
character(len_trim(str)*2) function, public eiram_json_jsonescape (str, length)
 Return the input string where »\« and »"« are escaped with backslashes. More...
 
subroutine, public eiram_json_writejsonstringproperty (name, value, jsonString, ind)
 Write a pair of the JSON property-(string-)values into a string, including leading comma. More...
 

Function/Subroutine Documentation

character(size(arr)*(itol+9)+2) function, public json::eiram_json_getarrayasjson ( real(8), dimension(:), intent(in)  arr,
integer, intent(out)  length,
integer, intent(in)  itol 
)

Return a JSON array string (ie. "[…]") with the elements of the given array arr.

Parameters
[in]arrthe array which is converterted to a json array string
[out]lengththe (trimmed) length of the returned string
[in]itolNumber of significant digits in the output

Definition at line 36 of file json.f90.

Referenced by getreactionsasjson(), and pointstojsonstring().

Here is the caller graph for this function:

character(len_trim(str)*2) function, public json::eiram_json_jsonescape ( character(*), intent(in)  str,
integer, intent(out)  length 
)

Return the input string where »\« and »"« are escaped with backslashes.

Parameters
[in]strthe string which will be escaped
[out]lengththe (trimmed) length of the escaped string

Definition at line 69 of file json.f90.

Referenced by eiram_json_writejsonstringproperty().

Here is the caller graph for this function:

subroutine, public json::eiram_json_writejsonstringproperty ( character(*), intent(in)  name,
character(*), intent(in)  value,
character(*), intent(inout)  jsonString,
integer, intent(inout)  ind 
)

Write a pair of the JSON property-(string-)values into a string, including leading comma.

Parameters
[in]namethe name of the property
[in]valuethe value of the property; the value is assumed not to be escaped
[in,out]jsonstringthe string to which the property is written
[in,out]indthe index of the string where the value is written; after the call, the index is positioned after the last character written

Definition at line 94 of file json.f90.

References eiram_json_jsonescape().

Referenced by getreactionsasjson(), and pointstojsonstring().

Here is the call graph for this function:

Here is the caller graph for this function: