updated json pattern for models