libxl_json: allow basic JSON type objects generation
authorWei Liu <wei.liu2@citrix.com>
Tue, 13 May 2014 21:53:59 +0000 (22:53 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 21 May 2014 10:01:13 +0000 (11:01 +0100)
commit1f7752978189640fb4725922e901233065d5a3d7
tree79eee57ba8106802da86670b61f082663bbfb3c7
parentd638671fa44f8c1c55205a127d3224e8cf39a549
libxl_json: allow basic JSON type objects generation

The original logic is that basic JSON types (number, string and null)
must be an element of JSON map or array. This assumption doesn't hold
true anymore when we need to return basic JSON types.

Returning basic JSON types is required for parsing number, string and
null objects back into libxl__json_object.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_internal.h
tools/libxl/libxl_json.c