Some fixes with putJsonDocument method, added checking presence of some
metadata in createArray function.