• jsonfile#

This is a package for simple json file operations. Mainly about reading and writting json files from python dict object.

It can be viewed as a submodule for the easyidp.ROI class.

Functions#

Caution

The easyidp.ROI class is an advanced wrapper around the following functions, which is generally sufficient for most simple application cases, please don’t use the following functions unless you really need to.

read_json(json_path)

Read json file to python dict.

read_geojson(geojson_path[, name_field, ...])

Read geojson file to python dict

show_geojson_fields(geojson_path)

Show geojson properties data, for better setting name_field of read_geojson

dict2json(data_dict, json_path[, indent, ...])

Save dict object to the same structure json file

write_json(data_dict, json_path[, indent, ...])

Save dict to the same structure json file, a function wrapper for dict2json()

save_json(data_dict, json_path[, indent, ...])

Save dict to the same structure json file, a function wrapper for dict2json()