Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    native json support

    I believe the SmartClient uses eval() to parse JSON. I'm seeing that IE8 and Firefox 3.5 offer native json support that is supposed to be much faster than using eval(). Are there plans for smartclient to leverage this in browsers where native json parsing is available?

    #2
    We will do so, however, eval() is already very, very fast: consider how fast the SmartClient runtime itself is executed by the browser, despite how much code there is. The time to eval() is relatively negligible in the overall mix of things that happen when communicating with the server.

    Comment


      #3
      Since SmartGWT has yet to use JSON.parse to parse json string, is there a workaround so that I could use JSON.parse and still getting SmartGWT's Array object instead of default native Array object?

      Beside speed, JSON.parse also addresses security concerns with eval and it also works when parsing a very large json string (Firefox throws exception when parse a very large json string.

      Thanks.

      Comment

      Working...
      X