linking json to models?