nvflare.edge.web.web_server module
- class FilteredJSONProvider(app: App)[source]
Bases:
DefaultJSONProvider- dumps(obj: Any, **kwargs: Any) str[source]
Serialize data as JSON to a string.
Keyword arguments are passed to
json.dumps(). Sets some parameter defaults from thedefault,ensure_ascii, andsort_keysattributes.- Parameters:
obj – The data to serialize.
kwargs – Passed to
json.dumps().
- sort_keys = False
Sort the keys in any serialized dicts. This may be useful for some caching situations, but can be disabled for better performance. When enabled, keys must all be strings, they are not converted before sorting.