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

Can't pass JSON string as value #2

Open
ulver2812 opened this issue Jan 11, 2025 · 0 comments
Open

Can't pass JSON string as value #2

ulver2812 opened this issue Jan 11, 2025 · 0 comments

Comments

@ulver2812
Copy link

Hi, I'm trying to pass a JSON string as value in database.update but I get this error:
"error" : "Invalid data; couldn't parse JSON object. Are you sending a JSON object with valid key names?"

I think that the problem is in "src/Fbdatabase.cpp" at line 11:

String payload = "{\"" + key + "\":\"" + value + "\"}";

This syntax can't permit to pass a JSON string, can you improve this function or add a specific JSON function.

Thanks!

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

No branches or pull requests

1 participant