depth json serialization