MLstate/opalang — pull request #47 by alokmenghrajani (2012-03-02 04:29:07+00:00)
Title: Fix json serialization code

Prior to this diff, boolean values are serialized as records. While that works, I don't see why we shouldn't use json boolean values directly,
especially since stdlib/core/rpc/core/json.opa knows about it already.

Here is how I tested this:
Debug.warning(Json.serialize(OpaSerialize.Json.serialize({x: true, y: 1})))

Before this diff:
{"y":1,"x":{"true":{}}}

With this diff:
{"y":1,"x":true}