Saturday, December 31, 2016

Re: JsInterop JSON.parse()ed object differs from JSNI JSON.parse()ed object

Hehe I'm curious too. What obscure library was modifying your json, and how?


El sáb., 31 dic. 2016 13:37, Vassilis Virvilis <vasvir2@gmail.com> escribió:
So why it did it in the one case but not in the other? Were you calling the third party js explicitly in the one case?

On Sat, Dec 31, 2016 at 1:04 PM, Dave Puchyr <dave@avaritia.com> wrote:
After stepping through the compiled js I found that a third party (obfuscated) js library manipulated the timestamps on me.  JsInterop is fine. :)  Sorry for the noise.


On Saturday, December 31, 2016 at 11:20:43 AM UTC+1, Dave Puchyr wrote:
Even when I reduce the json input to

{"Contract":"STK:USD:PBA@NYSE","action":"onHistoricalData","bar":"D","bars":[{"time":1451952000},{"time":1452038400},{"time":1452124800}],"callback":4,"metadata":{"noData":false},"t":1483179318,"t0":1452075258,"ticker":"STK:USD:PBA@NYSE"}

the time properties are still 1607400000 in the JsInterop parsed object. Thanks for the suggestion, though.

On Saturday, December 31, 2016 at 8:40:58 AM UTC+1, Paul Robinson wrote:
Have you tried modifying/simplifying the JSON to see what your odd behaviour is sensitive to?

Paul 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment