About 625,000 results
Open links in new tab
  1. python - NumPy array is not JSON serializable - Stack Overflow

    In the default function check if the object is from the module numpy, if so either use ndarray.tolist for a ndarray or use .item for any other numpy specific type.

  2. How to make a class JSON serializable - Stack Overflow

    Sep 22, 2010 · It's unfortunate that the answers all seem to answer the question "How do I serialize a class?" rather than the action question "How do I make a class serializable?" These …

  3. Object of type 'ndarray' is not JSON serializable - Stack Overflow

    Aug 4, 2018 · Object of type 'ndarray' is not JSON serializable Asked 7 years, 4 months ago Modified 3 years, 11 months ago Viewed 32k times

  4. TypeError: Object of type 'ndarray' is not JSON serializable

    Jul 30, 2019 · TypeError: Object of type 'ndarray' is not JSON serializable Asked 6 years, 5 months ago Modified 4 years, 5 months ago Viewed 20k times

  5. python - TypeError: Object of type ndarray is not JSON serializable ...

    Apr 21, 2025 · I need to save this entire data_to_save structure into a JSON file. Because json.dump cannot handle NumPy arrays natively, and I'm using NumPy 2.0 (where older type …

  6. TypeError: Object of type 'ndarray' is not JSON serializable

    Dec 20, 2022 · I'm using Scikit-Learn and want to try saving the feature names for unigram, bigram and trigram stored in the variables terms_unigram, terms_bigram and terms_trigram …

  7. python - object is not JSON serializable - Stack Overflow

    Nov 28, 2017 · TypeError: <pymongo.cursor.Cursor object at 0x109bda150> is not JSON serializable Any ideas? I also welcome any suggestions on the rest of the code, but the JSON …

  8. Object of type ndarray is not JSON serializable

    Feb 15, 2023 · I am getting data using a TCP and trying it to publish it in std_msgs/Float64MultiArray format, however when I am trying to convert the json data to …

  9. Object of type ndarray is not JSON serializable: API endpoint

    Jul 27, 2022 · It is just a list I am passing. I am just passing a JSON as input and converting that JSON into dictionary, picking up only the values and converting it into a dataframe and …

  10. Python - Object of type 'ndarray' is not JSON serializable

    Jan 24, 2020 · Python - Object of type 'ndarray' is not JSON serializable Asked 5 years, 11 months ago Modified 5 years, 11 months ago Viewed 770 times