Added JsonDocument to deal with Arrays and Objects.