Re: [Gambas-devel-svn] SVN: gambas:[7737] gambas/trunk/comp/src/gb.util.web

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Re: [Gambas-devel-svn] SVN: gambas:[7737] gambas/trunk/comp/src/gb.util.web

Tobias Boege-2
Hi Benoit,

On Mon, 11 Apr 2016, [hidden email] wrote:

> Revision: 7737
> Author:   tobiasboe
> Date:     2016-04-11 17:04:36 +0000 (Mon, 11 Apr 2016)
> Log Message:
> -----------
> * NEW: Always initialise JSON.Null, so that an entry in a JSONCollection with value JSON.Null appears in the Encode() string.
> Modified Paths:
> --------------
>     gambas/trunk/comp/src/gb.util.web/.info
>     gambas/trunk/comp/src/gb.util.web/.src/JSON.module

The idea here is that

  Dim j As New JSONCollection

  j["x"] = JSON.Null
  Print JSON.Encode(j)

should result in

  {"x": null}

which the commit accomplishes. I don't know if that was how you intended
JSON.Null to work, though, so please have a look at it.


"There's an old saying: Don't change anything... ever!" -- Mr. Monk

Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
Gambas-devel mailing list
[hidden email]