loadVectorJson function

Load a vector from json