Serialize data as JSON.
obj (Any) – The data to serialize.
Any
kwargs (Any) – May be passed to the underlying JSON library.
str