Return an object that is JSON-serializable.
A list of JSON-serializable objects. Handles some common cases like NumPy scalars.