Avoid an unnecessary extra copy when constructing JsonArray's.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>