Quantcast

Re: [Gambas-devel-svn] SF.net 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
|  
Report Content as Inappropriate

Re: [Gambas-devel-svn] SF.net 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
>           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

------------------------------------------------------------------------------
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! http://pubads.g.doubleclick.net/
gampad/clk?id=1444514301&iu=/ca-pub-7940484522588532
_______________________________________________
Gambas-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-devel
Loading...