-
Notifications
You must be signed in to change notification settings - Fork 156
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
JSON.stringify doesn't work for external objects #69
Comments
Hi @alveko, You can use a helper function The problem with externals is that as of now, they are semi-Objects. It is not possible to use them interchangeably with native js Objects. In the future I plan to get rid of the external type, converting the external prototypes to native Objects. But, that is not that easy. |
Hello @xeioex , Sorry to bombard you with questions today, but how do we supposed to use I tried following ways, but could not figure out how to read content:
Could you please help? |
For example you can return it as a body of the http reply: |
This works great, thanks a lot! |
closed as duplicate of #16 |
Since 0fa4360 (0.3.8), |
When trying to call
JSON.stringify(request)
, whererequest
is an external object, the result isnull
.The text was updated successfully, but these errors were encountered: