Fix Python Typeerror Object Of Type Ndarray Is Not Json Serializable

Fix Python Typeerror Object Of Type Ndarray Is Not Json Serializable