mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
restrict the json convention to dictionaries only
This commit is contained in:
parent
8be0782c39
commit
cd3fa1b361
@ -780,11 +780,10 @@ The content of these objects is the same as the contents of the corresponding ke
|
|||||||
|
|
||||||
# Appendix G. JSON Attribute Convention. {#nczarr_version1}
|
# Appendix G. JSON Attribute Convention. {#nczarr_version1}
|
||||||
|
|
||||||
An attribute may be encountered on read whose value is not
|
An attribute may be encountered on read whose value when parsed
|
||||||
parseable as a netcdf attribute because it is not an atomic
|
by JSON is a dictionary. As a special conventions, the value
|
||||||
value or array of atomic values. In this case, the value is
|
converted to a string and stored as the value of the attribute
|
||||||
treated as arbitrary JSON and is converted to a string form as
|
and the type of the attribute is treated as char.
|
||||||
the value of a character typed attribute.
|
|
||||||
|
|
||||||
When writing a character valued attribute, it's value is examined
|
When writing a character valued attribute, it's value is examined
|
||||||
to see if it looks like a JSON dictionary (i.e. "{...}")
|
to see if it looks like a JSON dictionary (i.e. "{...}")
|
||||||
|
Loading…
Reference in New Issue
Block a user