-
-
Notifications
You must be signed in to change notification settings - Fork 148
JSON object inside object gets stringified incorrectly #196
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
Comments
I got the same issue. When trying to send an array, it would stringify the entire array. Took some time to finally find why it could not unmarshall the json 😂 |
I had to read the code to find this out, but it will only properly serialize the JSON if you have |
It seems like the rationale for this behavior is in #169 (comment) Essentially, JSON is special cased to minimize it and non-JSON is intended for form urlencoded but that seems like it's broken? |
@thatsmydoing One solution would be to use Treesitter to determine the content of the body. When doing |
Closing this due to v3 release. This should be fixed now. |
@boltlessengineer Awesome! Thank you very much! |
Given the following request
When I do
<Plug>RestNvimPreview
, it yields this:Notice how the value of
foo
becomes a string, even though it should be an object.I expect the follwoing:
The text was updated successfully, but these errors were encountered: