Avoid an unnecessary extra copy when constructing JsonArray's.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Merge pull request #951 from tsuna/jsonarray-opt

Avoid an unnecessary extra copy when constructing JsonArray's.