first version of json doc preparation to index