Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nn.loadData() appears to be broken #206

Closed
gohai opened this issue Sep 23, 2024 · 1 comment · Fixed by #207
Closed

nn.loadData() appears to be broken #206

gohai opened this issue Sep 23, 2024 · 1 comment · Fixed by #207

Comments

@gohai
Copy link
Member

gohai commented Sep 23, 2024

When loading a JSON file produced by nn.saveData(), the following error message is returned (with the latest 1.x version of the library): data must be a json object containing an array called "data"

To reproduce: try pressing l in this sketch. The data3.json file has been produced using the same code (same ml5 version).

@ziyuan-linn
Copy link
Member

@gohai Thank you for submitting this issue! Looks like there was an incorrect call to JSON.stringify on an already stringified JSON object. I opened a PR to fix this.

@ziyuan-linn ziyuan-linn linked a pull request Sep 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants