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

Tobias Boege taboege at ...176...
Mon Apr 11 19:07:39 CEST 2016


Hi Benoit,

On Mon, 11 Apr 2016, tobiasboe at ...1... wrote:
> Revision: 7737
>           http://sourceforge.net/p/gambas/code/7737
> Author:   tobiasboe
> Date:     2016-04-11 17:04:36 +0000 (Mon, 11 Apr 2016)
> Log Message:
> -----------
> [GB.UTIL.WEB]
> * 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.

Regards,
Tobi

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




More information about the Devel mailing list